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,Restartable
public class DistributableTimerService<I> extends Object implements ManagedTimerService
EJB specification facade for a distributable EJB timer manager.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributableTimerService(DistributableTimerServiceConfiguration<I> configuration, TimerManager<I,Batch> manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.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)ManagedTimerfindTimer(String timerId)Returns the managed timer associated with the specified identifierCollection<jakarta.ejb.Timer>getAllTimers()TimedObjectInvokergetInvoker()Returns the invoker for the timed object associated with this timer service.Collection<jakarta.ejb.Timer>getTimers()voidstart()voidstop()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ejb3.timerservice.spi.ManagedTimerService
createCalendarTimer, createIntervalTimer, createSingleActionTimer, createTimer, createTimer, createTimer, createTimer, validateInvocationContext
-
-
-
-
Constructor Detail
-
DistributableTimerService
public DistributableTimerService(DistributableTimerServiceConfiguration<I> configuration, TimerManager<I,Batch> manager)
-
-
Method Detail
-
getInvoker
public TimedObjectInvoker 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 interfaceRestartable
-
stop
public void stop()
- Specified by:
stopin interfaceRestartable
-
findTimer
public ManagedTimer findTimer(String timerId)
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
public jakarta.ejb.Timer createSingleActionTimer(Date expiration, jakarta.ejb.TimerConfig config)
- Specified by:
createSingleActionTimerin interfacejakarta.ejb.TimerService
-
getTimers
public Collection<jakarta.ejb.Timer> getTimers() throws jakarta.ejb.EJBException
- Specified by:
getTimersin interfacejakarta.ejb.TimerService- Throws:
jakarta.ejb.EJBException
-
getAllTimers
public Collection<jakarta.ejb.Timer> getAllTimers() throws jakarta.ejb.EJBException
- Specified by:
getAllTimersin interfacejakarta.ejb.TimerService- Throws:
jakarta.ejb.EJBException
-
-