Save This Page
Home » glassfish-v2ur2-b04-src » javax » ejb » [javadoc | source]
javax.ejb
public interface: TimerService [javadoc | source] 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.
Method from javax.ejb.TimerService Summary:
createTimer,   createTimer,   createTimer,   createTimer,   getTimers
Method from javax.ejb.TimerService Detail:
 public Timer createTimer(long duration,
    Serializable info) throws IllegalArgumentException, EJBException, IllegalStateException
    Create a single-action timer that expires after a specified duration.
 public Timer createTimer(Date expiration,
    Serializable info) throws IllegalArgumentException, EJBException, IllegalStateException
    Create a single-action timer that expires at a given point in time.
 public Timer createTimer(long initialDuration,
    long intervalDuration,
    Serializable info) throws IllegalArgumentException, EJBException, IllegalStateException
    Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.
 public Timer createTimer(Date initialExpiration,
    long intervalDuration,
    Serializable info) throws IllegalArgumentException, EJBException, IllegalStateException
    Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.
 public Collection getTimers() throws EJBException, IllegalStateException
    Get all the active timers associated with this bean.