public class OddjobTimerService extends Object implements OddjobExecutors
Constructor and Description |
---|
OddjobTimerService() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the name.
|
ExecutorService |
getPoolExecutor()
Provide a
ExecutorService . |
int |
getPoolSize() |
ScheduledExecutorService |
getScheduledExecutor()
Provide a
ScheduledExecutorService . |
Date |
getTimeNow() |
void |
setName(String name)
Set the name
|
void |
setPoolSize(int poolSize) |
void |
start()
Start the shcheduler.
|
void |
stop() |
String |
toString() |
public String getName()
public void setName(String name)
name
- The name.public ExecutorService getPoolExecutor()
OddjobExecutors
ExecutorService
. Implementations are free to
use OddjobExecutors.getScheduledExecutor()
for this, or provide
something different.getPoolExecutor
in interface OddjobExecutors
public ScheduledExecutorService getScheduledExecutor()
OddjobExecutors
ScheduledExecutorService
.getScheduledExecutor
in interface OddjobExecutors
public void start()
SchedulerException
public void stop()
public Date getTimeNow()
public int getPoolSize()
public void setPoolSize(int poolSize)