Class SuspendableTimerService

java.lang.Object
org.jboss.as.ejb3.timerservice.SuspendableTimerService
All Implemented Interfaces:
jakarta.ejb.TimerService, AutoCloseable, ManagedTimerService, org.wildfly.clustering.server.manager.Service

public class SuspendableTimerService extends Object implements ManagedTimerService
Author:
Paul Ferraro
  • Constructor Details

    • SuspendableTimerService

      public SuspendableTimerService(ManagedTimerService service, org.jboss.as.server.suspend.SuspendableActivityRegistry registry)
  • Method Details

    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface org.wildfly.clustering.server.manager.Service
    • start

      public void start()
      Specified by:
      start in interface org.wildfly.clustering.server.manager.Service
    • stop

      public void stop()
      Specified by:
      stop in interface org.wildfly.clustering.server.manager.Service
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ManagedTimerService
    • getTimers

      public Collection<jakarta.ejb.Timer> getTimers() throws jakarta.ejb.EJBException
      Specified by:
      getTimers in interface jakarta.ejb.TimerService
      Throws:
      jakarta.ejb.EJBException
    • getAllTimers

      public Collection<jakarta.ejb.Timer> getAllTimers() throws jakarta.ejb.EJBException
      Specified by:
      getAllTimers in interface jakarta.ejb.TimerService
      Throws:
      jakarta.ejb.EJBException
    • createSingleActionTimer

      public jakarta.ejb.Timer createSingleActionTimer(Date expiration, jakarta.ejb.TimerConfig timerConfig) throws jakarta.ejb.EJBException
      Specified by:
      createSingleActionTimer in interface jakarta.ejb.TimerService
      Throws:
      jakarta.ejb.EJBException
    • createIntervalTimer

      public jakarta.ejb.Timer createIntervalTimer(Date initialExpiration, long intervalDuration, jakarta.ejb.TimerConfig timerConfig) throws jakarta.ejb.EJBException
      Specified by:
      createIntervalTimer in interface jakarta.ejb.TimerService
      Throws:
      jakarta.ejb.EJBException
    • createCalendarTimer

      public jakarta.ejb.Timer createCalendarTimer(jakarta.ejb.ScheduleExpression schedule, jakarta.ejb.TimerConfig timerConfig) throws jakarta.ejb.EJBException
      Specified by:
      createCalendarTimer in interface jakarta.ejb.TimerService
      Throws:
      jakarta.ejb.EJBException
    • findTimer

      public ManagedTimer findTimer(String id)
      Description copied from interface: ManagedTimerService
      Returns the managed timer associated with the specified identifier
      Specified by:
      findTimer in interface ManagedTimerService
      Parameters:
      id - a timer identifier
      Returns:
      a managed timer
    • getInvoker

      public TimedObjectInvoker getInvoker()
      Description copied from interface: ManagedTimerService
      Returns the invoker for the timed object associated with this timer service.
      Specified by:
      getInvoker in interface ManagedTimerService
      Returns:
      a timed object invoker