Package org.jboss.as.ejb3.component
Class TimerServiceRegistry
- java.lang.Object
-
- org.jboss.as.ejb3.component.TimerServiceRegistry
-
public class TimerServiceRegistry extends Object
A registry to which individualtimer servicescan register to (and un-register from). The main purpose of this registry is to provide an implementation ofgetAllActiveTimers()which returns allactive timersafter querying each of thetimer servicesregistered with thisregistry. 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 Summary
Constructors Constructor Description TimerServiceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<javax.ejb.Timer>getAllActiveTimers()voidregisterTimerService(javax.ejb.TimerService timerService)booleanunRegisterTimerService(javax.ejb.TimerService timerService)
-
-
-
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()
-
-