Package org.jboss.as.ejb3.timerservice
Class NonFunctionalTimerService
- java.lang.Object
-
- org.jboss.as.ejb3.timerservice.NonFunctionalTimerService
-
- All Implemented Interfaces:
jakarta.ejb.TimerService,ManagedTimerService,Restartable
public class NonFunctionalTimerService extends Object implements ManagedTimerService
Non-functional timer service that is bound when the timer service is disabled.
-
-
Constructor Summary
Constructors Constructor Description NonFunctionalTimerService(String message, ManagedTimerServiceConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ejb.TimercreateCalendarTimer(jakarta.ejb.ScheduleExpression schedule, jakarta.ejb.TimerConfig timerConfig)jakarta.ejb.TimercreateIntervalTimer(Date initialExpiration, long intervalDuration, jakarta.ejb.TimerConfig timerConfig)jakarta.ejb.TimercreateSingleActionTimer(Date expiration, jakarta.ejb.TimerConfig timerConfig)ManagedTimerfindTimer(String id)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()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ejb3.timerservice.spi.ManagedTimerService
createCalendarTimer, createIntervalTimer, createSingleActionTimer, createTimer, createTimer, createTimer, createTimer, validateInvocationContext
-
-
-
-
Constructor Detail
-
NonFunctionalTimerService
public NonFunctionalTimerService(String message, ManagedTimerServiceConfiguration configuration)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceRestartable
-
stop
public void stop()
- Specified by:
stopin interfaceRestartable
-
findTimer
public ManagedTimer findTimer(String id)
Description copied from interface:ManagedTimerServiceReturns the managed timer associated with the specified identifier- Specified by:
findTimerin interfaceManagedTimerService- Parameters:
id- a timer identifier- Returns:
- a managed timer
-
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
-
createCalendarTimer
public jakarta.ejb.Timer createCalendarTimer(jakarta.ejb.ScheduleExpression schedule, jakarta.ejb.TimerConfig timerConfig)- Specified by:
createCalendarTimerin interfacejakarta.ejb.TimerService
-
createIntervalTimer
public jakarta.ejb.Timer createIntervalTimer(Date initialExpiration, long intervalDuration, jakarta.ejb.TimerConfig timerConfig)
- Specified by:
createIntervalTimerin interfacejakarta.ejb.TimerService
-
createSingleActionTimer
public jakarta.ejb.Timer createSingleActionTimer(Date expiration, jakarta.ejb.TimerConfig timerConfig)
- Specified by:
createSingleActionTimerin interfacejakarta.ejb.TimerService
-
getTimers
public Collection<jakarta.ejb.Timer> getTimers()
- Specified by:
getTimersin interfacejakarta.ejb.TimerService
-
getAllTimers
public Collection<jakarta.ejb.Timer> getAllTimers() throws IllegalStateException, jakarta.ejb.EJBException
- Specified by:
getAllTimersin interfacejakarta.ejb.TimerService- Throws:
IllegalStateExceptionjakarta.ejb.EJBException
-
-