Class DistributableTimerService<I>

  • All Implemented Interfaces:
    Function<I,​javax.ejb.Timer>, javax.ejb.TimerService, ManagedTimerService, org.wildfly.clustering.ee.Restartable

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

      • start

        public void start()
        Specified by:
        start in interface org.wildfly.clustering.ee.Restartable
      • stop

        public void stop()
        Specified by:
        stop in interface org.wildfly.clustering.ee.Restartable
      • createCalendarTimer

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

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

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

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

        public javax.ejb.Timer apply​(I id)
        Specified by:
        apply in interface Function<I,​javax.ejb.Timer>
      • getAllTimers

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