public final class DiscoveryEJBClientInterceptor extends Object implements EJBClientInterceptor
EJBClientInterceptor.Registration| Modifier and Type | Field and Description |
|---|---|
static int |
PRIORITY
This interceptor's priority.
|
| Constructor and Description |
|---|
DiscoveryEJBClientInterceptor()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
getDiscoveryAdditionalTimeout()
Gets the value (in milliseconds) of discovery additional timeout,
configured with system property
org.jboss.ejb.client.discovery.additional-node-timeout. |
void |
handleInvocation(EJBClientInvocationContext context)
Handle the invocation.
|
Object |
handleInvocationResult(EJBClientInvocationContext context)
Handle the invocation result.
|
SessionID |
handleSessionCreation(EJBSessionCreationInvocationContext context)
Optionally handle a session creation invocation.
|
public static final int PRIORITY
public DiscoveryEJBClientInterceptor()
public void handleInvocation(EJBClientInvocationContext context) throws Exception
EJBClientInterceptorEJBClientInvocationContext.sendRequest().handleInvocation in interface EJBClientInterceptorcontext - the invocation contextException - if an invocation error occurspublic Object handleInvocationResult(EJBClientInvocationContext context) throws Exception
EJBClientInterceptorEJBClientInvocationContext.getResult()
immediately and perform any post-invocation cleanup task in a finally block.handleInvocationResult in interface EJBClientInterceptorcontext - the invocation contextException - if an invocation error occurredpublic SessionID handleSessionCreation(EJBSessionCreationInvocationContext context) throws Exception
EJBClientInterceptorhandleSessionCreation in interface EJBClientInterceptorcontext - the session creation invocation context (not null)null)Exception - if an invocation error occurredpublic static long getDiscoveryAdditionalTimeout()
org.jboss.ejb.client.discovery.additional-node-timeout.Copyright © 2021 JBoss by Red Hat. All rights reserved.