com.hammurapi.config.bootstrap
Class SimpleThreadPool

java.lang.Object
  extended by 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

Constructor Summary
SimpleThreadPool(int size)
           
 
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
 

Constructor Detail

SimpleThreadPool

public SimpleThreadPool(int size)
Method Detail

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