TimerServicepublic interface TimerService The TimerService interface provides enterprise bean components
with access to the container-provided Timer Service. The EJB
Timer Service allows entity beans, stateless session beans,
and message-driven beans to be registered for timer callback
events at a specified time, after a specified elapsed time, or
after a specified interval. |
Methods Summary |
---|
public Timer | createTimer(long duration, java.io.Serializable info)Create a single-action timer that expires after a specified duration.
| public Timer | createTimer(long initialDuration, long intervalDuration, java.io.Serializable info)Create an interval timer whose first expiration occurs after a specified
duration, and whose subsequent expirations occur after a specified
interval.
| public Timer | createTimer(java.util.Date expiration, java.io.Serializable info)Create a single-action timer that expires at a given point in time.
| public Timer | createTimer(java.util.Date initialExpiration, long intervalDuration, java.io.Serializable info)Create an interval timer whose first expiration occurs at a given
point in time and whose subsequent expirations occur after a specified
interval.
| public java.util.Collection | getTimers()Get all the active timers associated with this bean.
|
|