Class PulsarConnectorIncomingConfiguration

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

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

    • PulsarConnectorIncomingConfiguration

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

    • getConsumerConfiguration

      public Optional<String> getConsumerConfiguration()
      Gets the consumer-configuration value from the configuration. Attribute Name: consumer-configuration Description: Identifier of a CDI bean that provides the default Pulsar consumer 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 consumer-configuration
    • getAckStrategy

      public String getAckStrategy()
      Gets the ack-strategy value from the configuration. Attribute Name: ack-strategy Description: Specify the commit strategy to apply when a message produced from a record is acknowledged. Values can be `ack`, `cumulative`. Default Value: ack
      Returns:
      the ack-strategy
    • getFailureStrategy

      public String getFailureStrategy()
      Gets the failure-strategy value from the configuration. Attribute Name: failure-strategy Description: Specify the failure strategy to apply when a message produced from a record is acknowledged negatively (nack). Values can be `nack` (default), `fail`, `ignore` or `reconsume-later Default Value: nack
      Returns:
      the failure-strategy
    • getReconsumeLaterDelay

      public Long getReconsumeLaterDelay()
      Gets the reconsumeLater.delay value from the configuration. Attribute Name: reconsumeLater.delay Description: Default delay for reconsume failure-strategy, in seconds Default Value: 3
      Returns:
      the reconsumeLater.delay
    • getNegativeAckRedeliveryBackoff

      public Optional<String> getNegativeAckRedeliveryBackoff()
      Gets the negativeAck.redeliveryBackoff value from the configuration. Attribute Name: negativeAck.redeliveryBackoff Description: Comma separated values for configuring negative ack MultiplierRedeliveryBackoff, min delay, max delay, multiplier.
      Returns:
      the negativeAck.redeliveryBackoff
    • getAckTimeoutRedeliveryBackoff

      public Optional<String> getAckTimeoutRedeliveryBackoff()
      Gets the ackTimeout.redeliveryBackoff value from the configuration. Attribute Name: ackTimeout.redeliveryBackoff Description: Comma separated values for configuring ack timeout MultiplierRedeliveryBackoff, min delay, max delay, multiplier.
      Returns:
      the ackTimeout.redeliveryBackoff
    • getDeadLetterPolicyMaxRedeliverCount

      public Optional<Integer> getDeadLetterPolicyMaxRedeliverCount()
      Gets the deadLetterPolicy.maxRedeliverCount value from the configuration. Attribute Name: deadLetterPolicy.maxRedeliverCount Description: Maximum number of times that a message will be redelivered before being sent to the dead letter topic
      Returns:
      the deadLetterPolicy.maxRedeliverCount
    • getDeadLetterPolicyDeadLetterTopic

      public Optional<String> getDeadLetterPolicyDeadLetterTopic()
      Gets the deadLetterPolicy.deadLetterTopic value from the configuration. Attribute Name: deadLetterPolicy.deadLetterTopic Description: Name of the dead letter topic where the failing messages will be sent
      Returns:
      the deadLetterPolicy.deadLetterTopic
    • getDeadLetterPolicyRetryLetterTopic

      public Optional<String> getDeadLetterPolicyRetryLetterTopic()
      Gets the deadLetterPolicy.retryLetterTopic value from the configuration. Attribute Name: deadLetterPolicy.retryLetterTopic Description: Name of the retry topic where the failing messages will be sent
      Returns:
      the deadLetterPolicy.retryLetterTopic
    • getDeadLetterPolicyInitialSubscriptionName

      public Optional<String> getDeadLetterPolicyInitialSubscriptionName()
      Gets the deadLetterPolicy.initialSubscriptionName value from the configuration. Attribute Name: deadLetterPolicy.initialSubscriptionName Description: Name of the initial subscription name of the dead letter topic
      Returns:
      the deadLetterPolicy.initialSubscriptionName
    • getBatchReceive

      public Boolean getBatchReceive()
      Gets the batchReceive value from the configuration. Attribute Name: batchReceive Description: Whether batch receive is used to consume messages Default Value: false
      Returns:
      the batchReceive
    • validate

      public void validate()
      Overrides:
      validate in class PulsarConnectorCommonConfiguration