Class FlippingServiceUnavailableByConfigurationInterceptor
java.lang.Object
org.distributeme.core.interceptor.AbstractClientSideRequestInterceptor
org.distributeme.core.interceptor.availabilitytesting.ServiceUnavailableInterceptor
org.distributeme.core.interceptor.availabilitytesting.ServiceUnavailableByConfigurationInterceptor
org.distributeme.core.interceptor.availabilitytesting.FlippingServiceUnavailableByConfigurationInterceptor
- All Implemented Interfaces:
ClientSideRequestInterceptor
public class FlippingServiceUnavailableByConfigurationInterceptor
extends ServiceUnavailableByConfigurationInterceptor
This interceptor makes the service unavailable depending on a configured probability (flipping) on the client side.
- Version:
- $Id: $Id
- Author:
- another
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanabortCall(ClientSideCallContext context) Returns true if current call should be aborted.Methods inherited from class org.distributeme.core.interceptor.availabilitytesting.ServiceUnavailableInterceptor
beforeServiceCallMethods inherited from class org.distributeme.core.interceptor.AbstractClientSideRequestInterceptor
afterServiceCall
-
Constructor Details
-
FlippingServiceUnavailableByConfigurationInterceptor
public FlippingServiceUnavailableByConfigurationInterceptor()
-
-
Method Details
-
abortCall
Returns true if current call should be aborted.- Overrides:
abortCallin classServiceUnavailableByConfigurationInterceptor- Parameters:
context- aClientSideCallContextobject.- Returns:
- a boolean.
-