public class IntelligentProxyInterceptor extends AbstractApplicableInterceptor
Modifier and Type | Field and Description |
---|---|
protected IExternalAccess |
ea
The external access.
|
protected static ITargetResolver |
NULL |
protected IServiceIdentifier |
sid
The service identifier.
|
protected ITargetResolver |
tr
The target resolver.
|
protected long |
wto
The worker timeout.
|
Constructor and Description |
---|
IntelligentProxyInterceptor(IExternalAccess ea,
IServiceIdentifier sid)
Create a new invocation handler.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Void> |
execute(ServiceInvocationContext sic)
Execute the interceptor.
|
protected ITargetResolver |
getTargetResolver(ServiceInvocationContext sic)
Get the target resolver.
|
protected static java.lang.Exception |
handleException(java.lang.Exception e) |
protected IFuture<java.lang.Void> |
invoke(IServiceIdentifier broken,
ServiceInvocationContext sic,
int maxretries,
int cnt) |
static IFuture<java.lang.Object> |
invoke(IServiceIdentifier broken,
ServiceInvocationContext sic,
IServiceIdentifier sid,
IExternalAccess ea,
ITargetResolver tr,
int maxretries,
int cnt) |
static boolean |
isRedirectable(ServiceInvocationContext sic) |
isApplicable
protected IExternalAccess ea
protected IServiceIdentifier sid
protected ITargetResolver tr
protected long wto
protected static final ITargetResolver NULL
public IntelligentProxyInterceptor(IExternalAccess ea, IServiceIdentifier sid)
public IFuture<java.lang.Void> execute(ServiceInvocationContext sic)
context
- The invocation context.protected IFuture<java.lang.Void> invoke(IServiceIdentifier broken, ServiceInvocationContext sic, int maxretries, int cnt)
protected static java.lang.Exception handleException(java.lang.Exception e)
protected ITargetResolver getTargetResolver(ServiceInvocationContext sic)
public static boolean isRedirectable(ServiceInvocationContext sic)
public static IFuture<java.lang.Object> invoke(IServiceIdentifier broken, ServiceInvocationContext sic, IServiceIdentifier sid, IExternalAccess ea, ITargetResolver tr, int maxretries, int cnt)