Class DistributableTimerService<I>

  • Type Parameters:
    I - the timer identifier type
    All Implemented Interfaces:
    jakarta.ejb.TimerService, ManagedTimerService, Restartable

    public class DistributableTimerService<I>
    extends Object
    implements ManagedTimerService
    EJB specification facade for a distributable EJB timer manager.
    Author:
    Paul Ferraro
    • Method Detail

      • createCalendarTimer

        public jakarta.ejb.Timer createCalendarTimer​(jakarta.ejb.ScheduleExpression schedule,
                                                     jakarta.ejb.TimerConfig config)
        Specified by:
        createCalendarTimer in interface jakarta.ejb.TimerService
      • createIntervalTimer

        public jakarta.ejb.Timer createIntervalTimer​(Date initialExpiration,
                                                     long intervalDuration,
                                                     jakarta.ejb.TimerConfig config)
        Specified by:
        createIntervalTimer in interface jakarta.ejb.TimerService
      • createSingleActionTimer

        public jakarta.ejb.Timer createSingleActionTimer​(Date expiration,
                                                         jakarta.ejb.TimerConfig config)
        Specified by:
        createSingleActionTimer in interface jakarta.ejb.TimerService
      • getTimers

        public Collection<jakarta.ejb.Timer> getTimers()
                                                throws jakarta.ejb.EJBException
        Specified by:
        getTimers in interface jakarta.ejb.TimerService
        Throws:
        jakarta.ejb.EJBException
      • getAllTimers

        public Collection<jakarta.ejb.Timer> getAllTimers()
                                                   throws jakarta.ejb.EJBException
        Specified by:
        getAllTimers in interface jakarta.ejb.TimerService
        Throws:
        jakarta.ejb.EJBException