Class AbstractClientRoutingStrategy
java.lang.Object
com.linkedin.venice.fastclient.meta.AbstractClientRoutingStrategy
- Direct Known Subclasses:
HelixGroupRoutingStrategy
,LeastLoadedClientRoutingStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getHelixGroupId
(long requestId, int groupIdForOriginalRequest) getReplicas
(long requestId, int groupId, List<String> replicas) boolean
trackRequest
(RequestContext requestContext) This method is used to track the request for any custom logic that needs to be executed when a request is sent.void
updateHelixGroupInfo
(Map<String, Integer> instanceToHelixGroupIdMap)
-
Constructor Details
-
AbstractClientRoutingStrategy
public AbstractClientRoutingStrategy()
-
-
Method Details
-
getReplicas
-
updateHelixGroupInfo
-
getHelixGroupId
public int getHelixGroupId(long requestId, int groupIdForOriginalRequest) -
trackRequest
This method is used to track the request for any custom logic that needs to be executed when a request is sent.- Returns:
- boolean to indicate whether the request is tracked or not.
-