Package org.distributeme.core.qos
Class ClientSideMarkLongRequestAsFailedInterceptor
java.lang.Object
org.distributeme.core.qos.ClientSideMarkLongRequestAsFailedInterceptor
- All Implemented Interfaces:
ClientSideRequestInterceptor
public class ClientSideMarkLongRequestAsFailedInterceptor
extends Object
implements ClientSideRequestInterceptor
This interceptor inspects slow requests on client side and marks them as failed.
- Since:
- 06.02.15 01:09
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ClientSideMarkLongRequestAsFailedInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionafterServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called immediately after service call, but before anything is returned to the caller.beforeServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called after client side processing but before the actual call is performed.
-
Field Details
-
START_ATTRIBUTE
Attribute name for request start. -
TIMEOUT_PROPERTY
Timeout property for setting this configuration from outside the VM.- See Also:
-
-
Constructor Details
-
ClientSideMarkLongRequestAsFailedInterceptor
public ClientSideMarkLongRequestAsFailedInterceptor()Constructor for ClientSideMarkLongRequestAsFailedInterceptor.
-
-
Method Details
-
afterServiceCall
public InterceptorResponse afterServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called immediately after service call, but before anything is returned to the caller. This interceptor can be used to inspect or modify the answer from server.- Specified by:
afterServiceCallin interfaceClientSideRequestInterceptor- Parameters:
context- aClientSideCallContextobject.iContext- aInterceptionContextobject.- Returns:
- a
InterceptorResponseobject.
-
beforeServiceCall
public InterceptorResponse beforeServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called after client side processing but before the actual call is performed.- Specified by:
beforeServiceCallin interfaceClientSideRequestInterceptor- Parameters:
context- aClientSideCallContextobject.iContext- aInterceptionContextobject.- Returns:
- a
InterceptorResponseobject.
-