Package com.linkedin.venice.pubsub.api
Class PubSubProducerAdapterContext
java.lang.Object
com.linkedin.venice.pubsub.api.PubSubProducerAdapterContext
Encapsulates all dependencies and configurations required to create a producer using a producer factory.
This class serves as a unified context for managing producer setup across different PubSub systems.
Common configurations applicable to all PubSub implementations should be defined as member variables
in this class, while system-specific configurations should be stored in VeniceProperties
.
Each PubSub implementation is expected to interpret both the common configurations and the PubSub-specific settings based on namespace-scoped configurations.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionio.tehuti.metrics.MetricsRepository
boolean
boolean
-
Method Details
-
getProducerName
-
getBrokerAddress
-
getVeniceProperties
-
getSecurityProtocol
-
getMetricsRepository
public io.tehuti.metrics.MetricsRepository getMetricsRepository() -
getPubSubTopicRepository
-
shouldValidateProducerConfigStrictly
public boolean shouldValidateProducerConfigStrictly() -
getPubSubMessageSerializer
-
isProducerCompressionEnabled
public boolean isProducerCompressionEnabled() -
getCompressionType
-