Class CachingVeniceStoreClientFactory
java.lang.Object
com.linkedin.venice.client.factory.CachingVeniceStoreClientFactory
- All Implemented Interfaces:
VeniceStoreClientFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.linkedin.venice.client.factory.VeniceStoreClientFactory
VeniceStoreClientFactory.ClientConfigUpdater -
Constructor Summary
ConstructorsConstructorDescriptionCachingVeniceStoreClientFactory(ClientConfig clientConfig) CachingVeniceStoreClientFactory(ClientConfig clientConfig, VeniceStoreClientGlobalConfig globalConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<K,V> AvroGenericStoreClient<K, V> getAndStartAvroGenericStoreClient(String storeName) <K,V> AvroGenericStoreClient<K, V> getAndStartAvroGenericStoreClient(String storeName, VeniceStoreClientFactory.ClientConfigUpdater configUpdater) create a generic client along with customized client configs.<K,V extends org.apache.avro.specific.SpecificRecord>
AvroSpecificStoreClient<K,V> getAndStartAvroSpecificStoreClient(String storeName, Class<V> specificRecordClass) <K,V extends org.apache.avro.specific.SpecificRecord>
AvroSpecificStoreClient<K,V> getAndStartAvroSpecificStoreClient(String storeName, Class<V> specificRecordClass, VeniceStoreClientFactory.ClientConfigUpdater configUpdater)
-
Constructor Details
-
CachingVeniceStoreClientFactory
-
CachingVeniceStoreClientFactory
public CachingVeniceStoreClientFactory(ClientConfig clientConfig, VeniceStoreClientGlobalConfig globalConfig)
-
-
Method Details
-
getAndStartAvroGenericStoreClient
- Specified by:
getAndStartAvroGenericStoreClientin interfaceVeniceStoreClientFactory
-
getAndStartAvroGenericStoreClient
public <K,V> AvroGenericStoreClient<K,V> getAndStartAvroGenericStoreClient(String storeName, VeniceStoreClientFactory.ClientConfigUpdater configUpdater) Description copied from interface:VeniceStoreClientFactorycreate a generic client along with customized client configs. This is only for sophisticated use cases. Do not use it if you are not familiar with these configs. e.g. client = veniceStoreClientFactory.getAndStartAvroGenericStoreClient(storeName, (config) -> config.setVsonClient(true));- Specified by:
getAndStartAvroGenericStoreClientin interfaceVeniceStoreClientFactory- Returns:
-
getAndStartAvroSpecificStoreClient
public <K,V extends org.apache.avro.specific.SpecificRecord> AvroSpecificStoreClient<K,V> getAndStartAvroSpecificStoreClient(String storeName, Class<V> specificRecordClass) - Specified by:
getAndStartAvroSpecificStoreClientin interfaceVeniceStoreClientFactory
-
getAndStartAvroSpecificStoreClient
public <K,V extends org.apache.avro.specific.SpecificRecord> AvroSpecificStoreClient<K,V> getAndStartAvroSpecificStoreClient(String storeName, Class<V> specificRecordClass, VeniceStoreClientFactory.ClientConfigUpdater configUpdater) - Specified by:
getAndStartAvroSpecificStoreClientin interfaceVeniceStoreClientFactory
-
close
public void close()- Specified by:
closein interfaceVeniceStoreClientFactory
-