Class ThinClientBasedMetadata
- java.lang.Object
-
- com.linkedin.venice.fastclient.meta.AbstractStoreMetadata
-
- com.linkedin.venice.fastclient.meta.VeniceClientBasedMetadata
-
- com.linkedin.venice.fastclient.meta.ThinClientBasedMetadata
-
- All Implemented Interfaces:
StoreMetadata
,SchemaReader
,java.io.Closeable
,java.lang.AutoCloseable
public class ThinClientBasedMetadata extends VeniceClientBasedMetadata
An implementation of theVeniceClientBasedMetadata
that uses a Venice thin client to refresh the local metadata cache periodically.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.fastclient.meta.AbstractStoreMetadata
routingStrategy, storeName
-
-
Constructor Summary
Constructors Constructor Description ThinClientBasedMetadata(ClientConfig clientConfig, AvroSpecificStoreClient<StoreMetaKey,StoreMetaValue> thinClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StoreMetaValue
getStoreMetaValue(StoreMetaKey key)
-
Methods inherited from class com.linkedin.venice.fastclient.meta.VeniceClientBasedMetadata
close, getCompressor, getCurrentStoreVersion, getKeySchema, getLatestUpdateSchema, getLatestValueSchema, getLatestValueSchemaId, getPartitionId, getReplicas, getUpdateSchema, getValueSchema, getValueSchemaId, start
-
Methods inherited from class com.linkedin.venice.fastclient.meta.AbstractStoreMetadata
getBatchGetLimit, getCompressor, getInstanceHealthMonitor, getPartitionId, getReplicas, getStoreName, setRoutingStrategy, trackHealthBasedOnRequestToInstance
-
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.fastclient.meta.StoreMetadata
getReplicas, isReady
-
-
-
-
Constructor Detail
-
ThinClientBasedMetadata
public ThinClientBasedMetadata(ClientConfig clientConfig, AvroSpecificStoreClient<StoreMetaKey,StoreMetaValue> thinClient)
-
-
Method Detail
-
getStoreMetaValue
protected StoreMetaValue getStoreMetaValue(StoreMetaKey key)
- Specified by:
getStoreMetaValue
in classVeniceClientBasedMetadata
-
-