Class ConstantReplicationThrottleController
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.groups.sync.ConstantReplicationThrottleController
- All Implemented Interfaces:
IReplicationThrottleController,IReplicationThrottleControllerBuilder
public class ConstantReplicationThrottleController
extends Object
implements IReplicationThrottleController, IReplicationThrottleControllerBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateController(String groupName, String sourceMemberName, String targetMemberName) voidsuggestThroughPut(int throughPut) booleanthrottle(long backlogSize, int contextSize, boolean channelActive)
-
Constructor Details
-
ConstantReplicationThrottleController
public ConstantReplicationThrottleController(int threshold, long throttleDelay)
-
-
Method Details
-
throttle
public boolean throttle(long backlogSize, int contextSize, boolean channelActive) - Specified by:
throttlein interfaceIReplicationThrottleController
-
createController
public IReplicationThrottleController createController(String groupName, String sourceMemberName, String targetMemberName) - Specified by:
createControllerin interfaceIReplicationThrottleControllerBuilder
-
suggestThroughPut
public void suggestThroughPut(int throughPut) - Specified by:
suggestThroughPutin interfaceIReplicationThrottleController
-