Package com.linkedin.venice.client.store
Class RetriableStoreClient<K,V>
java.lang.Object
com.linkedin.venice.client.store.InternalAvroStoreClient<K,V>
com.linkedin.venice.client.store.DelegatingStoreClient<K,V>
com.linkedin.venice.client.store.RetriableStoreClient<K,V>
- All Implemented Interfaces:
AvroGenericReadComputeStoreClient<K,
,V> AvroGenericStoreClient<K,
,V> Closeable
,AutoCloseable
- Direct Known Subclasses:
SpecificRetriableStoreClient
TODO: make retry work for compute request.
-
Constructor Summary
ConstructorDescriptionRetriableStoreClient
(StatTrackingStoreClient<K, V> innerStoreClient, ClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptionAdding retry logic on router error as this method returning the completion stage value.Adding retry logic on router error as this method returning the completion stage value.static Executor
Methods inherited from class com.linkedin.venice.client.store.DelegatingStoreClient
close, compute, compute, computeWithKeyPrefixFilter, get, getDeserializationExecutor, getInnerStoreClient, getKeySchema, getLatestValueSchema, getRaw, getSchemaReader, getStoreName, isProjectionFieldValidationEnabled, start, streamingBatchGet
Methods inherited from class com.linkedin.venice.client.store.InternalAvroStoreClient
getRaw
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.client.store.AvroGenericReadComputeStoreClient
compute, compute, compute
Methods inherited from interface com.linkedin.venice.client.store.AvroGenericStoreClient
get, streamingBatchGet
-
Constructor Details
-
RetriableStoreClient
public RetriableStoreClient(StatTrackingStoreClient<K, V> innerStoreClient, ClientConfig clientConfig)
-
-
Method Details
-
getDefaultRetryExecutor
-
get
Adding retry logic on router error as this method returning the completion stage value.- Specified by:
get
in interfaceAvroGenericStoreClient<K,
V> - Overrides:
get
in classInternalAvroStoreClient<K,
V> - Returns:
- Throws:
VeniceClientException
-
batchGet
Adding retry logic on router error as this method returning the completion stage value.- Specified by:
batchGet
in interfaceAvroGenericStoreClient<K,
V> - Overrides:
batchGet
in classDelegatingStoreClient<K,
V> - Returns:
- Throws:
VeniceClientException
-