com.hammurapi.config.bootstrap
Class SimpleThreadPool
java.lang.Object
com.hammurapi.config.bootstrap.SimpleThreadPool
- All Implemented Interfaces:
- Destroyable, Executor
public class SimpleThreadPool
- extends Object
- implements Executor, Destroyable
Simple thread pool with minimal confriguration.
- Author:
- Pavel Vlasov
|
Method Summary |
void |
destroy()
Terminates element operations, releases resources used by the component. |
void |
execute(Runnable command)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleThreadPool
public SimpleThreadPool(int size)
execute
public void execute(Runnable command)
- Specified by:
execute in interface Executor
destroy
public void destroy()
- Description copied from interface:
Destroyable
- Terminates element operations, releases resources used by the component.
- Specified by:
destroy in interface Destroyable