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

public class DistributableTimerService<I> extends Object implements ManagedTimerService
EJB specification facade for a distributable EJB timer manager.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • 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
    • 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
    • findTimer

      public ManagedTimer findTimer(String timerId)
      Description copied from interface: ManagedTimerService
      Returns the managed timer associated with the specified identifier
      Specified by:
      findTimer in interface ManagedTimerService
      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:
      createCalendarTimer in interface jakarta.ejb.TimerService
    • createIntervalTimer

      public jakarta.ejb.Timer createIntervalTimer(Date initialExpiration, long intervalDuration, jakarta.ejb.TimerConfig config)
      Specified by:
      createIntervalTimer in interface jakarta.ejb.TimerService
    • createSingleActionTimer

      public jakarta.ejb.Timer createSingleActionTimer(Date expiration, jakarta.ejb.TimerConfig config)
      Specified by:
      createSingleActionTimer in interface jakarta.ejb.TimerService
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object