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 TypeMethodDescriptiondefault voidcallTimeout(jakarta.ejb.Timer timer) Invokes the ejbTimeout method on the TimedObject with the given id.voidcallTimeout(jakarta.ejb.Timer timer, Method timeoutMethod) Responsible for invoking the timeout method on the target object.Return the EJB component associated with this invokerThe 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
Invokes the ejbTimeout method on the TimedObject with the given id.- Parameters:
timer- the Timer that is passed to ejbTimeout- Throws:
Exception
-
callTimeout
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 thetimeron which the timeout has occurred.- Parameters:
timer- the Timer that is passed to ejbTimeouttimeoutMethod- The timeout method- Throws:
Exception
-
getClassLoader
ClassLoader getClassLoader()- Returns:
- The class loader that should be used to load restore any timers for this object
-