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
ConstructorsConstructorDescriptionRetriableStoreClient(InternalAvroStoreClient<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 ExecutorMethods inherited from class com.linkedin.venice.client.store.DelegatingStoreClient
close, compute, compute, computeWithKeyPrefixFilter, get, getDeserializationExecutor, getInnerStoreClient, getKeySchema, getLatestValueSchema, getRaw, getSchemaReader, getStoreName, isProjectionFieldValidationEnabled, start, startWithExceptionThrownWhenFail, streamingBatchGetMethods inherited from class com.linkedin.venice.client.store.InternalAvroStoreClient
getRaw, getStreamingCallbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.client.store.AvroGenericReadComputeStoreClient
compute, compute, compute, computeAggregationMethods inherited from interface com.linkedin.venice.client.store.AvroGenericStoreClient
get, streamingBatchGet
-
Constructor Details
-
RetriableStoreClient
public RetriableStoreClient(InternalAvroStoreClient<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:
getin interfaceAvroGenericStoreClient<K,V> - Overrides:
getin classInternalAvroStoreClient<K,V> - Returns:
- Throws:
VeniceClientException
-
batchGet
Adding retry logic on router error as this method returning the completion stage value.- Specified by:
batchGetin interfaceAvroGenericStoreClient<K,V> - Overrides:
batchGetin classDelegatingStoreClient<K,V> - Returns:
- Throws:
VeniceClientException
-