org.oddjob.scheduling
Class TrackingServices
java.lang.Object
org.oddjob.scheduling.TrackingServices
- All Implemented Interfaces:
- OddjobExecutors
public class TrackingServices
- extends Object
- implements OddjobExecutors
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrackingServices
public TrackingServices(int poolSize)
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.
getScheduledExecutor
public ScheduledExecutorService getScheduledExecutor()
- Description copied from interface:
OddjobExecutors
- Provide a
ScheduledExecutorService
.
- Specified by:
getScheduledExecutor
in interface OddjobExecutors
- Returns:
- A ScheduledExecutorService. Never null.
stop
public void stop()
throws InterruptedException
- Throws:
InterruptedException