Package org.jboss.as.ejb3.timerservice
Class TimedObjectInvokerImpl
- java.lang.Object
-
- org.jboss.as.ejb3.timerservice.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 Summary
Constructors Constructor Description TimedObjectInvokerImpl(org.jboss.modules.Module module, String deploymentName, EJBComponent component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallTimeout(jakarta.ejb.Timer timer, Method method)Responsible for invoking the timeout method on the target object.booleanequals(Object object)ClassLoadergetClassLoader()EJBComponentgetComponent()Return the EJB component associated with this invokerStringgetTimedObjectId()The globally unique identifier for this timed object invoker.inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ejb3.timerservice.spi.TimedObjectInvoker
callTimeout
-
-
-
-
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 ExceptionDescription 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
public EJBComponent getComponent()
Description copied from interface:TimedObjectInvokerReturn the EJB component associated with this invoker- Specified by:
getComponentin interfaceTimedObjectInvoker- Returns:
- an EJB component
-
getTimedObjectId
public String getTimedObjectId()
Description copied from interface:TimedObjectInvokerThe globally unique identifier for this timed object invoker.- Specified by:
getTimedObjectIdin interfaceTimedObjectInvoker- Returns:
- the identifier
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceTimedObjectInvoker- Returns:
- The class loader that should be used to load restore any timers for this object
-
-