Interface TimedObjectInvoker

All Known Implementing Classes:
TimedObjectInvokerImpl

public interface TimedObjectInvoker
An implementation can invoke the ejbTimeout method on a TimedObject.

The TimedObjectInvoker has knowledge of the TimedObjectId, it knows which object to invoke.

Author:
Thomas.Diesler@jboss.org, Carlo de Wolf
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    callTimeout(jakarta.ejb.Timer timer)
    Invokes the ejbTimeout method on the TimedObject with the given id.
    void
    callTimeout(jakarta.ejb.Timer timer, Method timeoutMethod)
    Responsible for invoking the timeout method on the target object.
     
    Return the EJB component associated with this invoker
    The globally unique identifier for this timed object invoker.
  • Method Details

    • getComponent

      EJBComponent getComponent()
      Return the EJB component associated with this invoker
      Returns:
      an EJB component
    • getTimedObjectId

      String getTimedObjectId()
      The globally unique identifier for this timed object invoker.
      Returns:
      the identifier
    • callTimeout

      default void callTimeout(jakarta.ejb.Timer timer) throws Exception
      Invokes the ejbTimeout method on the TimedObject with the given id.
      Parameters:
      timer - the Timer that is passed to ejbTimeout
      Throws:
      Exception
    • callTimeout

      void callTimeout(jakarta.ejb.Timer timer, Method timeoutMethod) throws Exception
      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.

      Parameters:
      timer - the Timer that is passed to ejbTimeout
      timeoutMethod - The timeout method
      Throws:
      Exception
    • getClassLoader

      ClassLoader getClassLoader()
      Returns:
      The class loader that should be used to load restore any timers for this object