Class FlippingServerSideSlowDownByConfigurationInterceptor
java.lang.Object
org.distributeme.core.interceptor.AbstractServerSideRequestInterceptor
org.distributeme.core.interceptor.availabilitytesting.ServerSideSlowDownInterceptor
org.distributeme.core.interceptor.availabilitytesting.ServerSideSlowDownByConfigurationInterceptor
org.distributeme.core.interceptor.availabilitytesting.FlippingServerSideSlowDownByConfigurationInterceptor
- All Implemented Interfaces:
ServerSideRequestInterceptor
public class FlippingServerSideSlowDownByConfigurationInterceptor
extends ServerSideSlowDownByConfigurationInterceptor
This interceptor slows down the request depending on a configured probability (flipping) on the server side.
- Version:
- $Id: $Id
- Author:
- another
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanslowDown(ServerSideCallContext context) Returns true if current call should be slowed down.Methods inherited from class org.distributeme.core.interceptor.availabilitytesting.ServerSideSlowDownByConfigurationInterceptor
getSlowDownTimeMethods inherited from class org.distributeme.core.interceptor.availabilitytesting.ServerSideSlowDownInterceptor
beforeServantCallMethods inherited from class org.distributeme.core.interceptor.AbstractServerSideRequestInterceptor
afterServantCall
-
Constructor Details
-
FlippingServerSideSlowDownByConfigurationInterceptor
public FlippingServerSideSlowDownByConfigurationInterceptor()
-
-
Method Details
-
slowDown
Returns true if current call should be slowed down. This decision is mostly based on service id.- Overrides:
slowDownin classServerSideSlowDownByConfigurationInterceptor- Parameters:
context- aServerSideCallContextobject.- Returns:
- a boolean.
-