Package com.linkedin.venice.pubsub
Class PubSubClientsFactory
java.lang.Object
com.linkedin.venice.pubsub.PubSubClientsFactory
A wrapper around pub-sub producer, consumer, and admin adapter factories
This will be passed as one of the arguments to the component which depends on the pub-sub APIs.
-
Constructor Summary
ConstructorDescriptionPubSubClientsFactory
(PubSubProducerAdapterFactory producerAdapterFactory, PubSubConsumerAdapterFactory consumerAdapterFactory, PubSubAdminAdapterFactory adminAdapterFactory) PubSubClientsFactory
(VeniceProperties properties) -
Method Summary
Modifier and TypeMethodDescriptioncreateAdminFactory
(VeniceProperties veniceProperties) createConsumerFactory
(VeniceProperties veniceProperties) static <T> T
createInstance
(String className) createProducerFactory
(VeniceProperties veniceProperties) createProducerFactory
(Properties properties) createSourceOfTruthAdminFactory
(VeniceProperties veniceProperties)
-
Constructor Details
-
PubSubClientsFactory
public PubSubClientsFactory(PubSubProducerAdapterFactory producerAdapterFactory, PubSubConsumerAdapterFactory consumerAdapterFactory, PubSubAdminAdapterFactory adminAdapterFactory) -
PubSubClientsFactory
-
-
Method Details
-
getProducerAdapterFactory
-
getConsumerAdapterFactory
-
getAdminAdapterFactory
-
createProducerFactory
public static PubSubProducerAdapterFactory<PubSubProducerAdapter> createProducerFactory(Properties properties) -
createProducerFactory
public static PubSubProducerAdapterFactory<PubSubProducerAdapter> createProducerFactory(VeniceProperties veniceProperties) -
createConsumerFactory
public static PubSubConsumerAdapterFactory<PubSubConsumerAdapter> createConsumerFactory(VeniceProperties veniceProperties) -
createAdminFactory
public static PubSubAdminAdapterFactory<PubSubAdminAdapter> createAdminFactory(VeniceProperties veniceProperties) -
createSourceOfTruthAdminFactory
public static PubSubAdminAdapterFactory<PubSubAdminAdapter> createSourceOfTruthAdminFactory(VeniceProperties veniceProperties) -
createInstance
-