Class 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 Detail

      • TimedObjectInvokerImpl

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object