Class TimerServiceRegistry


  • public class TimerServiceRegistry
    extends Object
    A registry to which individual timer services can register to (and un-register from). The main purpose of this registry is to provide an implementation of getAllActiveTimers() which returns all active timers after querying each of the timer services registered with this registry.

    Typical use of this registry is to maintain one instance of this registry, per deployment unit (also known as Jakarta Enterprise Beans module) and register the timer services of all Jakarta Enterprise Beans components that belong to that deployment unit. Effectively, such an instance can then be used to fetch all active timers that are applicable to that deployment unit (a.k.a Jakarta Enterprise Beans module).

    Author:
    Jaikiran Pai
    • Constructor Detail

      • TimerServiceRegistry

        public TimerServiceRegistry()
    • Method Detail

      • registerTimerService

        public void registerTimerService​(javax.ejb.TimerService timerService)
      • unRegisterTimerService

        public boolean unRegisterTimerService​(javax.ejb.TimerService timerService)
      • getAllActiveTimers

        public Collection<javax.ejb.Timer> getAllActiveTimers()