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 voidcompute(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 voidstreamingBatchGet(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, startMethods inherited from class com.linkedin.venice.fastclient.InternalAvroStoreClient
batchGet, batchGet, compute, computeWithKeyPrefixFilter, get, isProjectionFieldValidationEnabled, streamingBatchGet, streamingBatchGet, streamingBatchGetMethods 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 
- 
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:
 getin classDelegatingAvroStoreClient<K,V> - Throws:
 VeniceClientException
 - 
streamingBatchGet
protected void streamingBatchGet(BatchGetRequestContext<K, V> requestContext, Set<K> keys, StreamingCallback<K, throws VeniceClientExceptionV> callback) - Overrides:
 streamingBatchGetin 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:
 computein classDelegatingAvroStoreClient<K,V> - Throws:
 VeniceClientException
 
 -