Class BacklogAdjustedThrottleController
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.groups.sync.BacklogAdjustedThrottleController
- All Implemented Interfaces:
IReplicationThrottleController
public class BacklogAdjustedThrottleController
extends Object
implements IReplicationThrottleController
This will throttle operations according to the backlog size and active state. When a channel is
inactive, each thread will be throttled according to maxTPWhenInactive When a channel is active,
each thread will be throttled in a manner that will continuously decrease the backlog size.
- Since:
- 8.0
- Author:
- eitany
-
Constructor Summary
ConstructorsConstructorDescriptionBacklogAdjustedThrottleController(int maxTPWhenInactive, int minTPWhenActive, int threshold, int sampleRate, int finalStageLength, String groupName, String sourceMemberName, String targetMemberName, boolean throttleWhenInactive) -
Method Summary
Modifier and TypeMethodDescriptionvoidsuggestThroughPut(int throughPut) booleanthrottle(long backlogSize, int contextSize, boolean channelActive)
-
Constructor Details
-
BacklogAdjustedThrottleController
-
-
Method Details
-
throttle
public boolean throttle(long backlogSize, int contextSize, boolean channelActive) - Specified by:
throttlein interfaceIReplicationThrottleController
-
suggestThroughPut
public void suggestThroughPut(int throughPut) - Specified by:
suggestThroughPutin interfaceIReplicationThrottleController
-