Interface HelixGroupSelectionStrategy
-
- All Known Implementing Classes:
HelixGroupLeastLoadedStrategy
,HelixGroupRoundRobinStrategy
,HelixGroupSelector
public interface HelixGroupSelectionStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finishRequest(long requestId, int groupId)
Notify the corresponding Helix Group that the request is completed, and the implementation will decide whether any cleanup is required or not.int
getAvgGroupPendingRequest()
Get the average of the pending requests among all the groupsint
getMaxGroupPendingRequest()
Get the maximum of the pending requests among all the groupsint
getMinGroupPendingRequest()
Get the minimum of the pending requests among all the groupsint
selectGroup(long requestId, int groupCount)
Select a Helix Group for the current request.
-
-
-
Method Detail
-
selectGroup
int selectGroup(long requestId, int groupCount)
Select a Helix Group for the current request.
-
finishRequest
void finishRequest(long requestId, int groupId)
Notify the corresponding Helix Group that the request is completed, and the implementation will decide whether any cleanup is required or not.
-
getMaxGroupPendingRequest
int getMaxGroupPendingRequest()
Get the maximum of the pending requests among all the groups
-
getMinGroupPendingRequest
int getMinGroupPendingRequest()
Get the minimum of the pending requests among all the groups
-
getAvgGroupPendingRequest
int getAvgGroupPendingRequest()
Get the average of the pending requests among all the groups
-
-