public class TimedObjectInvokerImpl extends Object implements TimedObjectInvoker, Serializable, org.jboss.msc.service.Service<TimedObjectInvoker>
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Constructor and Description |
|---|
TimedObjectInvokerImpl(String deploymentString,
org.jboss.modules.Module module) |
| Modifier and Type | Method and Description |
|---|---|
void |
callTimeout(TimerImpl timer)
Invokes the ejbTimeout method on the TimedObject with the given id.
|
void |
callTimeout(TimerImpl timer,
Method timeoutMethod)
Responsible for invoking the timeout method on the target object.
|
ClassLoader |
getClassLoader() |
org.jboss.msc.value.InjectedValue<EJBComponent> |
getEjbComponent() |
String |
getTimedObjectId()
The globally unique identifier for this timed object invoker.
|
TimedObjectInvoker |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public TimedObjectInvokerImpl(String deploymentString, org.jboss.modules.Module module)
public void callTimeout(TimerImpl timer, Method timeoutMethod) throws Exception
TimedObjectInvoker
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.
callTimeout in interface TimedObjectInvokertimer - the Timer that is passed to ejbTimeouttimeoutMethod - The timeout methodExceptionpublic String getTimedObjectId()
TimedObjectInvokergetTimedObjectId in interface TimedObjectInvokerpublic void callTimeout(TimerImpl timer) throws Exception
TimedObjectInvokercallTimeout in interface TimedObjectInvokertimer - the Timer that is passed to ejbTimeoutExceptionpublic ClassLoader getClassLoader()
getClassLoader in interface TimedObjectInvokerpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic TimedObjectInvoker getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<TimedObjectInvoker>IllegalStateExceptionIllegalArgumentExceptionpublic org.jboss.msc.value.InjectedValue<EJBComponent> getEjbComponent()
Copyright © 2019 JBoss by Red Hat. All rights reserved.