Interface HelixGroupSelectionStrategy
- All Known Implementing Classes:
HelixGroupLeastLoadedStrategy
,HelixGroupRoundRobinStrategy
,HelixGroupSelector
public interface HelixGroupSelectionStrategy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finishRequest
(long requestId, int groupId, double latency) Notify the corresponding Helix Group that the request is completed, and the implementation will decide whether any cleanup is required or not.int
selectGroup
(long requestId, int groupCount) Select a Helix Group for the current request.
-
Method Details
-
selectGroup
int selectGroup(long requestId, int groupCount) Select a Helix Group for the current request. -
finishRequest
void finishRequest(long requestId, int groupId, double latency) Notify the corresponding Helix Group that the request is completed, and the implementation will decide whether any cleanup is required or not.
-