public final class EJBClientContext extends Attachable implements org.wildfly.common.context.Contextual<EJBClientContext>
| Modifier and Type | Class and Description |
|---|---|
static class |
EJBClientContext.Builder
A builder for EJB client contexts.
|
| Modifier and Type | Field and Description |
|---|---|
static org.wildfly.discovery.ServiceType |
EJB_SERVICE_TYPE
The service type to use for EJB discovery.
|
static String |
FILTER_ATTR_CLUSTER
The discovery attribute name which contains a cluster name.
|
static String |
FILTER_ATTR_EJB_MODULE
The discovery attribute name which contains the application and module name of the located EJB.
|
static String |
FILTER_ATTR_EJB_MODULE_DISTINCT
The discovery attribute name which contains the application and module name with the distinct name of the located EJB.
|
static String |
FILTER_ATTR_NODE
The discovery attribute name which contains a node name.
|
static String |
FILTER_ATTR_SOURCE_IP
The discovery attribute name for when a rule only applies to a specific source IP address range.
|
| Modifier and Type | Method and Description |
|---|---|
List<EJBClientConnection> |
getConfiguredConnections()
Get the pre-configured connections for this context.
|
static org.wildfly.common.context.ContextManager<EJBClientContext> |
getContextManager()
Get the context manager.
|
static EJBClientContext |
getCurrent()
Get the current client context for this thread.
|
Collection<EJBClientCluster> |
getInitialConfiguredClusters()
Get the initially configured clusters for this context.
|
org.wildfly.common.context.ContextManager<EJBClientContext> |
getInstanceContextManager()
Get the context manager.
|
long |
getInvocationTimeout()
Get the configured invocation timeout.
|
int |
getMaximumConnectedClusterNodes()
Get the maximum connected cluster nodes setting, for connection-based protocols which support eager connection.
|
EJBClientInterceptor.Registration |
registerInterceptor(int priority,
EJBClientInterceptor clientInterceptor)
Deprecated.
Please use EJBClientContext.Builder to manipulate the EJBClientInterceptors.
|
static EJBClientContext |
requireCurrent()
Get the current client context for this thread.
|
EJBClientContext |
withAddedInterceptors(EJBClientInterceptor... interceptors)
Get a copy of this context with the given interceptor(s) added.
|
EJBClientContext |
withAddedTransportProviders(EJBTransportProvider... transportProviders)
Get a copy of this context with the given transport provider(s) added.
|
getAttachment, getAttachments, putAttachment, putAttachmentIfAbsent, removeAttachment, removeAttachment, replaceAttachment, replaceAttachmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrun, runAction, runBiConsumer, runBiFunction, runBiPredicate, runCallable, runConsumer, runExBiConsumer, runExBiFunction, runExBiPredicate, runExceptionAction, runExConsumer, runExFunction, runExIntFunction, runExLongFunction, runExPredicate, runFunction, runIntFunction, runLongFunction, runPredicatepublic static final org.wildfly.discovery.ServiceType EJB_SERVICE_TYPE
public static final String FILTER_ATTR_EJB_MODULE
public static final String FILTER_ATTR_EJB_MODULE_DISTINCT
public static final String FILTER_ATTR_NODE
public static final String FILTER_ATTR_CLUSTER
public static final String FILTER_ATTR_SOURCE_IP
@Deprecated public EJBClientInterceptor.Registration registerInterceptor(int priority, EJBClientInterceptor clientInterceptor) throws IllegalArgumentException
clientInterceptor is already added to this context, then this method just returns the
old EJBClientInterceptor.Registration.
Note: If an interceptor is added or removed after a proxy is used, this will not affect the proxy interceptor list.
priority - the absolute priority of this interceptor (lower runs earlier; higher runs later)clientInterceptor - the interceptor to registerIllegalArgumentExceptionpublic org.wildfly.common.context.ContextManager<EJBClientContext> getInstanceContextManager()
static method getContextManager().getInstanceContextManager in interface org.wildfly.common.context.Contextual<EJBClientContext>null)public static org.wildfly.common.context.ContextManager<EJBClientContext> getContextManager()
null)public long getInvocationTimeout()
public List<EJBClientConnection> getConfiguredConnections()
null)public Collection<EJBClientCluster> getInitialConfiguredClusters()
public int getMaximumConnectedClusterNodes()
public EJBClientContext withAddedInterceptors(EJBClientInterceptor... interceptors)
null or empty, the
current context is returned as-is.interceptors - the interceptor(s) to addnull)public EJBClientContext withAddedTransportProviders(EJBTransportProvider... transportProviders)
null or empty, the
current context is returned as-is.transportProviders - the transport providers(s) to addnull)public static EJBClientContext getCurrent()
public static EJBClientContext requireCurrent()
getCurrent().Copyright © 2017 JBoss by Red Hat. All rights reserved.