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
ConstructorDescriptionCachingVeniceStoreClientFactory
(ClientConfig clientConfig) CachingVeniceStoreClientFactory
(ClientConfig clientConfig, VeniceStoreClientGlobalConfig globalConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<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:
getAndStartAvroGenericStoreClient
in interfaceVeniceStoreClientFactory
-
getAndStartAvroGenericStoreClient
public <K,V> AvroGenericStoreClient<K,V> getAndStartAvroGenericStoreClient(String storeName, VeniceStoreClientFactory.ClientConfigUpdater configUpdater) Description copied from interface:VeniceStoreClientFactory
create 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:
getAndStartAvroGenericStoreClient
in interfaceVeniceStoreClientFactory
- Returns:
-
getAndStartAvroSpecificStoreClient
public <K,V extends org.apache.avro.specific.SpecificRecord> AvroSpecificStoreClient<K,V> getAndStartAvroSpecificStoreClient(String storeName, Class<V> specificRecordClass) - Specified by:
getAndStartAvroSpecificStoreClient
in 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:
getAndStartAvroSpecificStoreClient
in interfaceVeniceStoreClientFactory
-
close
public void close()- Specified by:
close
in interfaceVeniceStoreClientFactory
-