public interface TimerService extends SchedulerService
Modifier and Type | Method and Description |
---|---|
long |
getCurrentTime()
Returns the current time from the scheduler clock
|
TimerJobFactoryManager |
getTimerJobFactoryManager() |
Collection<TimerJobInstance> |
getTimerJobInstances(long id)
This method may return null for some TimerService implementations that do not want the overhead of maintain this.
|
long |
getTimeToNextJob()
Returns the number of time units (usually ms) to
the next scheduled job
|
void |
setTimerJobFactoryManager(TimerJobFactoryManager timerJobFactoryManager) |
void |
shutdown()
Shuts the service down
|
removeJob, scheduleJob
long getCurrentTime()
void shutdown()
long getTimeToNextJob()
Collection<TimerJobInstance> getTimerJobInstances(long id)
void setTimerJobFactoryManager(TimerJobFactoryManager timerJobFactoryManager)
TimerJobFactoryManager getTimerJobFactoryManager()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.