public final class EJBReceiverInvocationContext extends AbstractReceiverInvocationContext
Modifier and Type | Class and Description |
---|---|
static interface |
EJBReceiverInvocationContext.ResultProducer
A result producer for invocation.
|
Modifier and Type | Method and Description |
---|---|
AuthenticationContext |
getAuthenticationContext()
Get the authentication context of the request.
|
EJBClientContext |
getClientContext() |
EJBClientInvocationContext |
getClientInvocationContext()
Get the invocation context associated with this receiver invocation context.
|
org.wildfly.discovery.Discovery |
getDiscovery() |
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 |
requestFailed(Exception cause)
Indicate that a request failed locally with the given exception cause.
|
void |
requestFailed(Exception cause,
Executor retryExecutor)
Indicate that a request failed locally with the given exception cause.
|
void |
resultReady(EJBReceiverInvocationContext.ResultProducer resultProducer)
Indicate that the invocation result is ready.
|
String |
toString() |
public void proceedAsynchronously()
public void resultReady(EJBReceiverInvocationContext.ResultProducer resultProducer)
resultProducer
- the result producerpublic void requestCancelled()
public void requestFailed(Exception cause)
cause
- the failure cause (must not be null
)public void requestFailed(Exception cause, Executor retryExecutor)
cause
- the failure cause (must not be null
)retryExecutor
- the executor to use for retry attempts (must not be null
)public EJBClientInvocationContext getClientInvocationContext()
AbstractReceiverInvocationContext
getClientInvocationContext
in class AbstractReceiverInvocationContext
public EJBClientContext getClientContext()
public org.wildfly.discovery.Discovery getDiscovery()
public AuthenticationContext getAuthenticationContext()
AbstractReceiverInvocationContext
getAuthenticationContext
in class AbstractReceiverInvocationContext
null
)Copyright © 2021 JBoss by Red Hat. All rights reserved.