|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.servicemix.executors.impl.ExecutorImpl
public class ExecutorImpl
The default Executor implementation which uses a ThreadPoolExecutor underneath.
Constructor Summary | |
---|---|
ExecutorImpl(java.util.concurrent.ThreadPoolExecutor threadPool,
long shutdownDelay,
boolean bypassIfSynchronous)
|
Method Summary | |
---|---|
int |
capacity()
The capacity of the underlying queue (if any) |
void |
execute(java.lang.Runnable command)
Execute a command. |
void |
shutdown()
Shutdown this executor. |
int |
size()
The current size of the underlying queue (if any) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecutorImpl(java.util.concurrent.ThreadPoolExecutor threadPool, long shutdownDelay, boolean bypassIfSynchronous)
Method Detail |
---|
public void execute(java.lang.Runnable command)
Executor
execute
in interface Executor
command
- the command to executepublic void shutdown()
Executor
shutdown
in interface Executor
public int capacity()
Executor
capacity
in interface Executor
public int size()
Executor
size
in interface Executor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |