|
||||||||||
| 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(ExecutorFactoryImpl executorFactory,
java.util.concurrent.ThreadPoolExecutor threadPool,
ExecutorConfig config)
|
|
| Method Summary | |
|---|---|
int |
capacity()
The capacity of the underlying queue (if any) |
void |
execute(java.lang.Runnable command)
Execute a command. |
protected ExecutorConfig |
getConfig()
The configuration used for creating this executor instance |
java.util.concurrent.ThreadPoolExecutor |
getThreadPoolExecutor()
|
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(ExecutorFactoryImpl executorFactory,
java.util.concurrent.ThreadPoolExecutor threadPool,
ExecutorConfig config)
| Method Detail |
|---|
public void execute(java.lang.Runnable command)
Executor
execute in interface Executorcommand - the command to executepublic void shutdown()
Executor
shutdown in interface Executorpublic int capacity()
Executor
capacity in interface Executorpublic int size()
Executor
size in interface Executorpublic java.util.concurrent.ThreadPoolExecutor getThreadPoolExecutor()
protected ExecutorConfig getConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||