org.oddjob.scheduling
Class DefaultExecutors

java.lang.Object
  extended by org.oddjob.scheduling.DefaultExecutors
All Implemented Interfaces:
OddjobExecutors

public class DefaultExecutors
extends Object
implements OddjobExecutors

Provide Simple Oddjob Services.

Author:
rob

Field Summary
static String POOL_SIZE_PROPERTY
           
 
Constructor Summary
DefaultExecutors()
           
 
Method Summary
 ExecutorService getPoolExecutor()
          Provide a ExecutorService.
 int getPoolSize()
           
 ScheduledExecutorService getScheduledExecutor()
          Provide a ScheduledExecutorService.
 void setPoolSize(int poolSize)
           
 void stop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POOL_SIZE_PROPERTY

public static final String POOL_SIZE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

DefaultExecutors

public DefaultExecutors()
Method Detail

stop

public void stop()

getScheduledExecutor

public ScheduledExecutorService getScheduledExecutor()
Description copied from interface: OddjobExecutors
Provide a ScheduledExecutorService.

Specified by:
getScheduledExecutor in interface OddjobExecutors
Returns:
A ScheduledExecutorService. Never null.

getPoolExecutor

public ExecutorService getPoolExecutor()
Description copied from interface: OddjobExecutors
Provide a ExecutorService. Implementations are free to use OddjobExecutors.getScheduledExecutor() for this, or provide something different.

Specified by:
getPoolExecutor in interface OddjobExecutors
Returns:
An ExecutorService. Never null.

getPoolSize

public int getPoolSize()

setPoolSize

public void setPoolSize(int poolSize)

toString

public String toString()
Overrides:
toString in class Object