Package com.linkedin.venice.fastclient
Class MultiKeyRequestContext<K,V>
java.lang.Object
com.linkedin.venice.fastclient.RequestContext
com.linkedin.venice.fastclient.MultiKeyRequestContext<K,V>
- Type Parameters:
K- Key typeV- Value type
- Direct Known Subclasses:
BatchGetRequestContext,ComputeRequestContext
Keep track of the progress of a multi-key requests - batch get and compute. This includes tracking all the scatter
requests and utilities to gather responses.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classrepresents a key requested on a route and tracks info related to it but specific to the route -
Constructor Summary
ConstructorsConstructorDescriptionMultiKeyRequestContext(int numKeysInRequest, boolean isPartialSuccessAllowed) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidcopyStateToRetryRequestContext(MultiKeyRequestContext<K, V> retryContext) intgetKeys()voidsetFanoutSize(int fanoutSize) voidvoidsetRoutesForPartitionMapping(Map<Integer, Set<String>> routesForPartition) Methods inherited from class com.linkedin.venice.fastclient.RequestContext
addNonAvailableReplicaPartition, getCurrentVersion, getHelixGroupId, getInstanceHealthMonitor, getNonAvailableReplicaPartitions, getRequestId, getRequestType, getResultFuture, getRouteRequestMap, getServerClusterName, hasNonAvailablePartition, isRetryRequest, setCurrentVersion, setHelixGroupId, setInstanceHealthMonitor, setRequestId, setRequestSerializationTime, setResultFuture, setRetryRequest, setServerClusterName
-
Constructor Details
-
MultiKeyRequestContext
public MultiKeyRequestContext(int numKeysInRequest, boolean isPartialSuccessAllowed)
-
-
Method Details
-
setKeys
-
getKeys
-
addKey
-
getRoutes
-
copyStateToRetryRequestContext
-
getRoutesForPartitionMapping
-
setRoutesForPartitionMapping
-
setFanoutSize
public void setFanoutSize(int fanoutSize) -
getFanoutSize
public int getFanoutSize()
-