Package com.linkedin.davinci.consumer
Class VeniceChangelogConsumerClientFactory
java.lang.Object
com.linkedin.davinci.consumer.VeniceChangelogConsumerClientFactory
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionVeniceChangelogConsumerClientFactory
(ChangelogClientConfig globalChangelogClientConfig, io.tehuti.metrics.MetricsRepository metricsRepository) -
Method Summary
Modifier and TypeMethodDescription<K,
V> BootstrappingVeniceChangelogConsumer<K, V> getBootstrappingChangelogConsumer
(String storeName) <K,
V> BootstrappingVeniceChangelogConsumer<K, V> getBootstrappingChangelogConsumer
(String storeName, String consumerId) <K,
V> BootstrappingVeniceChangelogConsumer<K, V> getBootstrappingChangelogConsumer
(String storeName, String consumerId, Class clazz) Creates a BootstrappingVeniceChangelogConsumer with consumer id.<K,
V> VeniceChangelogConsumer<K, V> getChangelogConsumer
(String storeName) Default method to create aVeniceChangelogConsumer
given a storeName.<K,
V> VeniceChangelogConsumer<K, V> getChangelogConsumer
(String storeName, String consumerId) <K,
V> VeniceChangelogConsumer<K, V> getChangelogConsumer
(String storeName, String consumerId, Class clazz) Creates a VeniceChangelogConsumer with consumer id.protected void
setConsumer
(PubSubConsumerAdapter consumer) protected void
setD2ControllerClient
(D2ControllerClient d2ControllerClient) protected void
setViewClassGetter
(VeniceChangelogConsumerClientFactory.ViewClassGetter viewClassGetter)
-
Field Details
-
viewClassGetter
-
-
Constructor Details
-
VeniceChangelogConsumerClientFactory
public VeniceChangelogConsumerClientFactory(ChangelogClientConfig globalChangelogClientConfig, io.tehuti.metrics.MetricsRepository metricsRepository)
-
-
Method Details
-
setD2ControllerClient
-
setConsumer
-
getChangelogConsumer
Default method to create aVeniceChangelogConsumer
given a storeName. -
getChangelogConsumer
public <K,V> VeniceChangelogConsumer<K,V> getChangelogConsumer(String storeName, String consumerId) -
getChangelogConsumer
public <K,V> VeniceChangelogConsumer<K,V> getChangelogConsumer(String storeName, String consumerId, Class clazz) Creates a VeniceChangelogConsumer with consumer id. This is used to create multiple consumers so that each consumer can only subscribe to certain partitions. Multiple such consumers can work in parallel. -
getBootstrappingChangelogConsumer
public <K,V> BootstrappingVeniceChangelogConsumer<K,V> getBootstrappingChangelogConsumer(String storeName) -
getBootstrappingChangelogConsumer
public <K,V> BootstrappingVeniceChangelogConsumer<K,V> getBootstrappingChangelogConsumer(String storeName, String consumerId, Class clazz) Creates a BootstrappingVeniceChangelogConsumer with consumer id. This is used to create multiple consumers so that each consumer can only subscribe to certain partitions. -
getBootstrappingChangelogConsumer
public <K,V> BootstrappingVeniceChangelogConsumer<K,V> getBootstrappingChangelogConsumer(String storeName, String consumerId) -
setViewClassGetter
protected void setViewClassGetter(VeniceChangelogConsumerClientFactory.ViewClassGetter viewClassGetter)
-