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 TimedObjectInvoker
timer
- the Timer that is passed to ejbTimeouttimeoutMethod
- The timeout methodException
public String getTimedObjectId()
TimedObjectInvoker
getTimedObjectId
in interface TimedObjectInvoker
public void callTimeout(TimerImpl timer) throws Exception
TimedObjectInvoker
callTimeout
in interface TimedObjectInvoker
timer
- the Timer that is passed to ejbTimeoutException
public ClassLoader getClassLoader()
getClassLoader
in interface TimedObjectInvoker
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<TimedObjectInvoker>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<TimedObjectInvoker>
public TimedObjectInvoker getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<TimedObjectInvoker>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.value.InjectedValue<EJBComponent> getEjbComponent()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.