org.jboss.ejb3.timerservice.spi
Interface MultiTimeoutMethodTimedObjectInvoker

All Superinterfaces:
TimedObjectInvoker

public interface MultiTimeoutMethodTimedObjectInvoker
extends TimedObjectInvoker

A MultiTimeoutMethodTimedObjectInvoker can handle multiple timeout methods.

This is unlike the TimedObjectInvoker which knows that there exists just one timeout method on the target timed object

The timer service implementation is responsible for passing the correct method name and method parameters of the timeout method to the callTimeout(Timer, String, String[]). The method name and method parameters of the timeout method depend on Timer for which the timeout occurred.


Method Summary
 void callTimeout(javax.ejb.Timer timer, java.lang.String timeoutMethodName, java.lang.String[] timeoutMethodParams)
          Responsible for invoking the timeout method represented by the passed timeoutMethodName and timeoutMethodParams, on the target object.
 
Methods inherited from interface org.jboss.ejb3.timerservice.spi.TimedObjectInvoker
callTimeout, getTimedObjectId
 

Method Detail

callTimeout

void callTimeout(javax.ejb.Timer timer,
                 java.lang.String timeoutMethodName,
                 java.lang.String[] timeoutMethodParams)
                 throws java.lang.Exception
Responsible for invoking the timeout method represented by the passed timeoutMethodName and timeoutMethodParams, 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 name and method params corresponding to the timer on which the timeout has occurred.

Parameters:
timer - the Timer that is passed to ejbTimeout
Throws:
java.lang.Exception