public final class EJBReceiverInvocationContext extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
EJBReceiverInvocationContext.ResultProducer
A result producer for invocation.
|
Modifier and Type | Method and Description |
---|---|
EJBClientInvocationContext |
getClientInvocationContext()
Returns the
EJBClientInvocationContext associated with this EJB receiver invocation context |
EJBReceiverContext |
getEjbReceiverContext()
Get the associated EJB receiver context.
|
String |
getNodeName()
Returns the node name of the receiver represented by this
EJBReceiverInvocationContext |
void |
proceedAsynchronously()
Indicate that the invocation should proceed asynchronously, if it isn't already.
|
void |
requestCancelled()
Indicate that the request was successfully cancelled and that no result is forthcoming.
|
void |
resultReady(EJBReceiverInvocationContext.ResultProducer resultProducer)
Indicate that the invocation result is ready.
|
void |
retryInvocation(boolean excludeCurrentReceiver)
Retry the current invocation
|
public EJBReceiverContext getEjbReceiverContext()
public EJBClientInvocationContext getClientInvocationContext()
EJBClientInvocationContext
associated with this EJB receiver invocation contextpublic void proceedAsynchronously()
public void resultReady(EJBReceiverInvocationContext.ResultProducer resultProducer)
resultProducer
- the result producerpublic void requestCancelled()
public void retryInvocation(boolean excludeCurrentReceiver) throws Exception
excludeCurrentReceiver
- True if the EJBReceiver
represented by this EJBReceiverInvocationContext
has to be excluded from being chosen for handling the retried invocation. False otherwise.Exception
- If the retried invocation runs into any exceptionpublic String getNodeName()
EJBReceiverInvocationContext
Copyright © 2018 JBoss by Red Hat. All rights reserved.