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 timeout method to the callTimeout(Timer, Method). The timeout method depends on the Timer for which the timeout occurred.


Method Summary
 void callTimeout(javax.ejb.Timer timer, java.lang.reflect.Method timeoutMethod)
          Responsible for invoking the timeout method 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.reflect.Method timeoutMethod)
                 throws java.lang.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:
java.lang.Exception