org.apache.servicemix.executors
Interface ExecutorAwareRunnable
- All Superinterfaces:
- java.lang.Runnable
public interface ExecutorAwareRunnable
- extends java.lang.Runnable
An enhanced runnable interface that can be implemented
by tasks submitted to the Executor.
|
Method Summary |
boolean |
shouldRunSynchronously()
This method can be used by the executor to have a hint whether the internal thread
pool can be bypassed for the execution of this runnable. |
| Methods inherited from interface java.lang.Runnable |
run |
shouldRunSynchronously
boolean shouldRunSynchronously()
- This method can be used by the executor to have a hint whether the internal thread
pool can be bypassed for the execution of this runnable.
If the Executor supports such things and the method returns
true,
this task will be executed in the caller thread.
- Returns:
true if the executor thread pool can be bypassed for this task
Copyright © 2005-2011 FuseSource. All Rights Reserved.