public abstract class AbstractInvocationContext extends Attachable
| Modifier and Type | Method and Description |
|---|---|
EJBClientContext |
getClientContext()
Get the EJB client context associated with this invocation.
|
Map<String,Object> |
getContextData()
Get the context data.
|
URI |
getDestination()
Get the resolved destination of this invocation.
|
String |
getInitialCluster()
Gets the initial cluster assignment by discovery, if any
|
EJBLocator<?> |
getLocator()
Get the locator for the invocation target.
|
Affinity |
getTargetAffinity()
Get the resolved target affinity of this invocation.
|
org.wildfly.transaction.client.AbstractTransaction |
getTransaction()
Get the transaction associated with the invocation.
|
Class<?> |
getViewClass()
Get the invoked view class.
|
Affinity |
getWeakAffinity()
Get the invocation weak affinity.
|
abstract void |
requestRetry()
Request that the current operation be retried if possible.
|
void |
setDestination(URI destination)
Set the resolved destination of this invocation.
|
<T> void |
setLocator(EJBLocator<T> locator)
Set the locator for the invocation target.
|
void |
setTargetAffinity(Affinity targetAffinity)
Set the resolved target affinity of this invocation.
|
void |
setTransaction(org.wildfly.transaction.client.AbstractTransaction transaction)
Set the transaction associated with the invocation.
|
void |
setWeakAffinity(Affinity weakAffinity)
Set the invocation weak affinity.
|
getAttachment, getAttachments, putAttachment, putAttachmentIfAbsent, removeAttachment, removeAttachment, replaceAttachment, replaceAttachmentpublic String getInitialCluster()
public EJBClientContext getClientContext()
public Map<String,Object> getContextData()
InvocationContext.getContextData() method, and thus
can be used to pass data from the client to the server (as long as all map values are
Serializable).public EJBLocator<?> getLocator()
public <T> void setLocator(EJBLocator<T> locator)
locator - the locator for the invocation targetpublic URI getDestination()
null is
returned.null if it is not yet knownpublic void setDestination(URI destination)
destination - the resolved destination of this invocationpublic Affinity getTargetAffinity()
null
is returned. The target affinity is retained only for the lifetime of the invocation; it may be used to aid
in resolving the destination to set.null if it is not yet knownpublic void setTargetAffinity(Affinity targetAffinity)
targetAffinity - the resolved target affinity of this invocationpublic Affinity getWeakAffinity()
Affinity.NONE if none (not null)public void setWeakAffinity(Affinity weakAffinity)
weakAffinity - the invocation weak affinity (must not be null)public Class<?> getViewClass()
public abstract void requestRetry()
public org.wildfly.transaction.client.AbstractTransaction getTransaction()
null is returned.null if no transaction should be propagatedpublic void setTransaction(org.wildfly.transaction.client.AbstractTransaction transaction)
null should be set.transaction - the transaction associated with the invocation, or null if no transaction should be
propagatedCopyright © 2018 JBoss by Red Hat. All rights reserved.