Package org.distributeme.core.qos
Class QOSMonitoringInterceptor
java.lang.Object
org.distributeme.core.qos.QOSMonitoringInterceptor
- All Implemented Interfaces:
ClientSideRequestInterceptor
Interceptor (client side) that enables QOS functionality in a client.
- Since:
- 20.02.15 17:29
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
QOSMonitoringInterceptor
public QOSMonitoringInterceptor()
-
-
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.
-