Package com.linkedin.venice.fastclient
Class LoadControlledAvroGenericStoreClient<K,V>
java.lang.Object
com.linkedin.venice.fastclient.InternalAvroStoreClient<K,V>
com.linkedin.venice.fastclient.DelegatingAvroStoreClient<K,V>
com.linkedin.venice.fastclient.LoadControlledAvroGenericStoreClient<K,V>
- All Implemented Interfaces:
AvroGenericReadComputeStoreClient<K,
,V> AvroGenericStoreClient<K,
,V> Closeable
,AutoCloseable
- Direct Known Subclasses:
LoadControlledAvroSpecificStoreClient
This class is used to control the load on the store from the client perspective.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoadControlledAvroGenericStoreClient
(InternalAvroStoreClient<K, V> delegate, ClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
compute
(ComputeRequestContext<K, V> requestContext, ComputeRequestWrapper computeRequestWrapper, Set<K> keys, org.apache.avro.Schema resultSchema, StreamingCallback<K, ComputeGenericRecord> callback, long preRequestTimeInNS) protected CompletableFuture<V>
get
(GetRequestContext<K> requestContext, K key) protected void
streamingBatchGet
(BatchGetRequestContext<K, V> requestContext, Set<K> keys, StreamingCallback<K, V> callback) Methods inherited from class com.linkedin.venice.fastclient.DelegatingAvroStoreClient
close, compute, getClientConfig, getKeySchema, getLatestValueSchema, getSchemaReader, getStoreName, start
Methods inherited from class com.linkedin.venice.fastclient.InternalAvroStoreClient
batchGet, batchGet, compute, computeWithKeyPrefixFilter, get, isProjectionFieldValidationEnabled, streamingBatchGet, streamingBatchGet, streamingBatchGet
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
-
Field Details
-
RATE_EXCEEDED_EXCEPTION
-
-
Constructor Details
-
LoadControlledAvroGenericStoreClient
public LoadControlledAvroGenericStoreClient(InternalAvroStoreClient<K, V> delegate, ClientConfig clientConfig)
-
-
Method Details
-
get
protected CompletableFuture<V> get(GetRequestContext<K> requestContext, K key) throws VeniceClientException - Overrides:
get
in classDelegatingAvroStoreClient<K,
V> - Throws:
VeniceClientException
-
streamingBatchGet
protected void streamingBatchGet(BatchGetRequestContext<K, V> requestContext, Set<K> keys, StreamingCallback<K, throws VeniceClientExceptionV> callback) - Overrides:
streamingBatchGet
in classDelegatingAvroStoreClient<K,
V> - Throws:
VeniceClientException
-
compute
protected void compute(ComputeRequestContext<K, V> requestContext, ComputeRequestWrapper computeRequestWrapper, Set<K> keys, org.apache.avro.Schema resultSchema, StreamingCallback<K, throws VeniceClientExceptionComputeGenericRecord> callback, long preRequestTimeInNS) - Overrides:
compute
in classDelegatingAvroStoreClient<K,
V> - Throws:
VeniceClientException
-