Class PulsarConnectorOutgoingConfiguration

java.lang.Object
io.smallrye.reactive.messaging.pulsar.PulsarConnectorCommonConfiguration
io.smallrye.reactive.messaging.pulsar.PulsarConnectorOutgoingConfiguration

public class PulsarConnectorOutgoingConfiguration extends PulsarConnectorCommonConfiguration
Extract the outgoing configuration for the smallrye-pulsar connector.
  • Constructor Details

    • PulsarConnectorOutgoingConfiguration

      public PulsarConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config)
      Creates a new PulsarConnectorOutgoingConfiguration.
  • Method Details

    • getProducerConfiguration

      public Optional<String> getProducerConfiguration()
      Gets the producer-configuration value from the configuration. Attribute Name: producer-configuration Description: Identifier of a CDI bean that provides the default Pulsar producer configuration for this channel. The channel configuration can still override any attribute. The bean must have a type of Map<String, Object> and must use the @io.smallrye.common.annotation.Identifier qualifier to set the identifier.
      Returns:
      the producer-configuration
    • getMaxPendingMessages

      public Integer getMaxPendingMessages()
      Gets the maxPendingMessages value from the configuration. Attribute Name: maxPendingMessages Description: The maximum size of a queue holding pending messages, i.e messages waiting to receive an acknowledgment from a broker Default Value: 1000
      Returns:
      the maxPendingMessages
    • getWaitForWriteCompletion

      public Boolean getWaitForWriteCompletion()
      Gets the waitForWriteCompletion value from the configuration. Attribute Name: waitForWriteCompletion Description: Whether the client waits for the broker to acknowledge the written record before acknowledging the message Default Value: true
      Returns:
      the waitForWriteCompletion
    • validate

      public void validate()
      Overrides:
      validate in class PulsarConnectorCommonConfiguration