org.oddjob.scheduling
Class DefaultExecutors
java.lang.Object
org.oddjob.scheduling.DefaultExecutors
- All Implemented Interfaces:
- OddjobExecutors
public class DefaultExecutors
- extends Object
- implements OddjobExecutors
Provide Simple Oddjob Services.
- Author:
- rob
POOL_SIZE_PROPERTY
public static final String POOL_SIZE_PROPERTY
- See Also:
- Constant Field Values
DefaultExecutors
public DefaultExecutors()
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