Class TimedObjectInvokerImpl

java.lang.Object
org.jboss.as.ejb3.timerservice.TimedObjectInvokerImpl
All Implemented Interfaces:
TimedObjectInvoker

public class TimedObjectInvokerImpl extends Object implements TimedObjectInvoker
Timed object invoker for an enterprise bean. This is analogous to a view service for timer invocations
Author:
Stuart Douglas, Paul Ferraro
  • Constructor Details

    • TimedObjectInvokerImpl

      public TimedObjectInvokerImpl(org.jboss.modules.Module module, String deploymentName, EJBComponent component)
  • Method Details

    • callTimeout

      public void callTimeout(jakarta.ejb.Timer timer, Method method) throws Exception
      Description copied from interface: TimedObjectInvoker
      Responsible for invoking the timeout method on the target object.

      The timerservice implementation invokes this method as a callback when a timeout occurs for the passed timer. The timerservice implementation will be responsible for passing the correct timeout method corresponding to the timer on which the timeout has occurred.

      Specified by:
      callTimeout in interface TimedObjectInvoker
      Parameters:
      timer - the Timer that is passed to ejbTimeout
      method - The timeout method
      Throws:
      Exception
    • getComponent

      public EJBComponent getComponent()
      Description copied from interface: TimedObjectInvoker
      Return the EJB component associated with this invoker
      Specified by:
      getComponent in interface TimedObjectInvoker
      Returns:
      an EJB component
    • getTimedObjectId

      public String getTimedObjectId()
      Description copied from interface: TimedObjectInvoker
      The globally unique identifier for this timed object invoker.
      Specified by:
      getTimedObjectId in interface TimedObjectInvoker
      Returns:
      the identifier
    • getClassLoader

      public ClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface TimedObjectInvoker
      Returns:
      The class loader that should be used to load restore any timers for this object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object