Package org.jboss.as.ejb3.timerservice
Class TimedObjectInvokerImpl
java.lang.Object
org.jboss.as.ejb3.timerservice.TimedObjectInvokerImpl
- All Implemented Interfaces:
TimedObjectInvoker
Timed object invoker for an enterprise bean. This is analogous to a view service for timer invocations
- Author:
- Stuart Douglas, Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionTimedObjectInvokerImpl(org.jboss.modules.Module module, String deploymentName, EJBComponent component) -
Method Summary
Modifier and TypeMethodDescriptionvoidcallTimeout(jakarta.ejb.Timer timer, Method method) Responsible for invoking the timeout method on the target object.booleanReturn the EJB component associated with this invokerThe globally unique identifier for this timed object invoker.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.as.ejb3.timerservice.spi.TimedObjectInvoker
callTimeout
-
Constructor Details
-
TimedObjectInvokerImpl
public TimedObjectInvokerImpl(org.jboss.modules.Module module, String deploymentName, EJBComponent component)
-
-
Method Details
-
callTimeout
Description copied from interface:TimedObjectInvokerResponsible 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.- Specified by:
callTimeoutin interfaceTimedObjectInvoker- Parameters:
timer- the Timer that is passed to ejbTimeoutmethod- The timeout method- Throws:
Exception
-
getComponent
Description copied from interface:TimedObjectInvokerReturn the EJB component associated with this invoker- Specified by:
getComponentin interfaceTimedObjectInvoker- Returns:
- an EJB component
-
getTimedObjectId
Description copied from interface:TimedObjectInvokerThe globally unique identifier for this timed object invoker.- Specified by:
getTimedObjectIdin interfaceTimedObjectInvoker- Returns:
- the identifier
-
getClassLoader
- Specified by:
getClassLoaderin interfaceTimedObjectInvoker- Returns:
- The class loader that should be used to load restore any timers for this object
-
hashCode
public int hashCode() -
equals
-
toString
-