Package com.linkedin.davinci.consumer
Class VeniceChangelogConsumerClientFactory
java.lang.Object
com.linkedin.davinci.consumer.VeniceChangelogConsumerClientFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionVeniceChangelogConsumerClientFactory
(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.<K,
V> VeniceChangelogConsumer<K, V> getChangelogConsumer
(String storeName, String consumerId, Class clazz, String viewNameOverride) protected static PubSubConsumerAdapter
getPubSubConsumer
(ChangelogClientConfig changelogClientConfig, String consumerName) 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. -
getChangelogConsumer
public <K,V> VeniceChangelogConsumer<K,V> getChangelogConsumer(String storeName, String consumerId, Class clazz, String viewNameOverride) -
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) -
getPubSubConsumer
protected static PubSubConsumerAdapter getPubSubConsumer(ChangelogClientConfig changelogClientConfig, String consumerName) -
setViewClassGetter
protected void setViewClassGetter(VeniceChangelogConsumerClientFactory.ViewClassGetter viewClassGetter)
-