org.eclipse.gemini.blueprint.extender.internal.util.concurrent
Class RunnableTimedExecution

java.lang.Object
  extended by org.eclipse.gemini.blueprint.extender.internal.util.concurrent.RunnableTimedExecution

public abstract class RunnableTimedExecution
extends Object

Utility class that executes the given Runnable task on the given task executor or , if none is given, to a new thread.

If the thread does not return in the given amount of time, it will be interrupted and a logging message sent.

This class is intended for usage inside the framework, mainly by the extender package for controlling runaway threads.

Author:
Costin Leau
See Also:
Counter, Thread

Constructor Summary
RunnableTimedExecution()
           
 
Method Summary
static boolean execute(Runnable task, long waitTime)
           
static boolean execute(Runnable task, long waitTime, org.springframework.core.task.TaskExecutor taskExecutor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnableTimedExecution

public RunnableTimedExecution()
Method Detail

execute

public static boolean execute(Runnable task,
                              long waitTime)

execute

public static boolean execute(Runnable task,
                              long waitTime,
                              org.springframework.core.task.TaskExecutor taskExecutor)


Copyright © 2006-2013. All Rights Reserved.