Class PulsarConnectorIncomingConfiguration
java.lang.Object
io.smallrye.reactive.messaging.pulsar.PulsarConnectorCommonConfiguration
io.smallrye.reactive.messaging.pulsar.PulsarConnectorIncomingConfiguration
Extract the incoming configuration for the
smallrye-pulsar connector.-
Field Summary
Fields inherited from class io.smallrye.reactive.messaging.pulsar.PulsarConnectorCommonConfiguration
config -
Constructor Summary
ConstructorsConstructorDescriptionPulsarConnectorIncomingConfiguration(org.eclipse.microprofile.config.Config config) Creates a new PulsarConnectorIncomingConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionGets the ack-strategy value from the configuration.Gets the ackTimeout.redeliveryBackoff value from the configuration.Gets the batchReceive value from the configuration.Gets the consumer-configuration value from the configuration.Gets the deadLetterPolicy.deadLetterTopic value from the configuration.Gets the deadLetterPolicy.initialSubscriptionName value from the configuration.Gets the deadLetterPolicy.maxRedeliverCount value from the configuration.Gets the deadLetterPolicy.retryLetterTopic value from the configuration.Gets the failure-strategy value from the configuration.Gets the negativeAck.redeliveryBackoff value from the configuration.Gets the reconsumeLater.delay value from the configuration.voidvalidate()Methods inherited from class io.smallrye.reactive.messaging.pulsar.PulsarConnectorCommonConfiguration
config, getChannel, getClientConfiguration, getFromAlias, getFromAliasWithDefaultValue, getHealthEnabled, getSchema, getServiceUrl, getTopic, getTracingEnabled
-
Constructor Details
-
PulsarConnectorIncomingConfiguration
public PulsarConnectorIncomingConfiguration(org.eclipse.microprofile.config.Config config) Creates a new PulsarConnectorIncomingConfiguration.
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
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:
validatein classPulsarConnectorCommonConfiguration
-