public interface TimerService extends SchedulerService
Modifier and Type | Method and Description |
---|---|
long |
getCurrentTime()
Returns the current time from the scheduler clock
|
Collection<TimerJobInstance> |
getTimerJobInstances(int 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 |
shutdown()
Shuts the service down
|
removeJob, scheduleJob
long getCurrentTime()
void shutdown()
long getTimeToNextJob()
Collection<TimerJobInstance> getTimerJobInstances(int id)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.