Class DistributableTimerService<I>
java.lang.Object
org.jboss.as.ejb3.timerservice.distributable.DistributableTimerService<I>
- Type Parameters:
I- the timer identifier type
- All Implemented Interfaces:
jakarta.ejb.TimerService,ManagedTimerService,org.wildfly.clustering.server.manager.Service
EJB specification facade for a distributable EJB timer manager.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDistributableTimerService(DistributableTimerServiceConfiguration<I> configuration, TimerManager<I> manager) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ejb.TimercreateCalendarTimer(jakarta.ejb.ScheduleExpression schedule, jakarta.ejb.TimerConfig config) jakarta.ejb.TimercreateIntervalTimer(Date initialExpiration, long intervalDuration, jakarta.ejb.TimerConfig config) jakarta.ejb.TimercreateSingleActionTimer(Date expiration, jakarta.ejb.TimerConfig config) Returns the managed timer associated with the specified identifierCollection<jakarta.ejb.Timer>Returns the invoker for the timed object associated with this timer service.Collection<jakarta.ejb.Timer>voidstart()voidstop()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.as.ejb3.timerservice.spi.ManagedTimerService
createCalendarTimer, createIntervalTimer, createSingleActionTimer, createTimer, createTimer, createTimer, createTimer, validateInvocationContext
-
Constructor Details
-
DistributableTimerService
public DistributableTimerService(DistributableTimerServiceConfiguration<I> configuration, TimerManager<I> manager)
-
-
Method Details
-
getInvoker
Description copied from interface:ManagedTimerServiceReturns the invoker for the timed object associated with this timer service.- Specified by:
getInvokerin interfaceManagedTimerService- Returns:
- a timed object invoker
-
start
public void start()- Specified by:
startin interfaceorg.wildfly.clustering.server.manager.Service
-
stop
public void stop()- Specified by:
stopin interfaceorg.wildfly.clustering.server.manager.Service
-
findTimer
Description copied from interface:ManagedTimerServiceReturns the managed timer associated with the specified identifier- Specified by:
findTimerin interfaceManagedTimerService- Parameters:
timerId- a timer identifier- Returns:
- a managed timer
-
createCalendarTimer
public jakarta.ejb.Timer createCalendarTimer(jakarta.ejb.ScheduleExpression schedule, jakarta.ejb.TimerConfig config) - Specified by:
createCalendarTimerin interfacejakarta.ejb.TimerService
-
createIntervalTimer
public jakarta.ejb.Timer createIntervalTimer(Date initialExpiration, long intervalDuration, jakarta.ejb.TimerConfig config) - Specified by:
createIntervalTimerin interfacejakarta.ejb.TimerService
-
createSingleActionTimer
- Specified by:
createSingleActionTimerin interfacejakarta.ejb.TimerService
-
getTimers
- Specified by:
getTimersin interfacejakarta.ejb.TimerService- Throws:
jakarta.ejb.EJBException
-
getAllTimers
- Specified by:
getAllTimersin interfacejakarta.ejb.TimerService- Throws:
jakarta.ejb.EJBException
-
toString
-