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
    • getMaxInflightMessages

      public Optional<Integer> getMaxInflightMessages()
      Gets the max-inflight-messages value from the configuration. Attribute Name: max-inflight-messages Description: The maximum size of a queue holding pending messages, i.e messages waiting to receive an acknowledgment from a broker. Defaults to 1000 messages
      Returns:
      the max-inflight-messages
    • 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