camel-pulsar-kafka-connector source configuration
Connector Description: Send and receive messages from/to Apache Pulsar messaging system.
When using camel-pulsar-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-pulsar-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this source connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.pulsar.CamelPulsarSourceConnector
The camel-pulsar source connector supports 45 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required Whether the topic is persistent or non-persistent One of: [persistent] [non-persistent]. Enum values:
|
HIGH |
||
Required The tenant. |
HIGH |
||
Required The namespace. |
HIGH |
||
Required The topic. |
HIGH |
||
Group the consumer acknowledgments for the specified time in milliseconds - defaults to 100. |
100L |
MEDIUM |
|
Timeout for unacknowledged messages in milliseconds - defaults to 10000. |
10000L |
MEDIUM |
|
Whether to allow manual message acknowledgements. If this option is enabled, then messages are not acknowledged automatically after successful route completion. Instead, an instance of PulsarMessageReceipt is stored as a header on the org.apache.camel.Exchange. Messages can then be acknowledged using PulsarMessageReceipt at any time before the ackTimeout occurs. |
false |
MEDIUM |
|
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. |
false |
MEDIUM |
|
Name of the consumer when subscription is EXCLUSIVE. |
"sole-consumer" |
MEDIUM |
|
Prefix to add to consumer names when a SHARED or FAILOVER subscription is used. |
"cons" |
MEDIUM |
|
Size of the consumer queue - defaults to 10. |
10 |
MEDIUM |
|
Name of the topic where the messages which fail maxRedeliverCount times will be sent. Note: if not set, default topic name will be topicName-subscriptionName-DLQ. |
MEDIUM |
||
Maximum number of times that a message will be redelivered before being sent to the dead letter queue. If this value is not set, no Dead Letter Policy will be created. |
MEDIUM |
||
Set the negative acknowledgement delay. |
60000000L |
MEDIUM |
|
Number of consumers - defaults to 1. |
1 |
MEDIUM |
|
Enable compacted topic reading. |
false |
MEDIUM |
|
Control the initial position in the topic of a newly created subscription. Default is latest message. One of: [EARLIEST] [LATEST]. Enum values:
|
"LATEST" |
MEDIUM |
|
Name of the subscription to use. |
"subs" |
MEDIUM |
|
Determines to which topics this consumer should be subscribed to - Persistent, Non-Persistent, or both. Only used with pattern subscriptions. One of: [PersistentOnly] [NonPersistentOnly] [AllTopics]. Enum values:
|
"PersistentOnly" |
MEDIUM |
|
Type of the subscription EXCLUSIVESHAREDFAILOVERKEY_SHARED, defaults to EXCLUSIVE One of: [EXCLUSIVE] [SHARED] [FAILOVER] [KEY_SHARED]. Enum values:
|
"EXCLUSIVE" |
MEDIUM |
|
Whether the topic is a pattern (regular expression) that allows the consumer to subscribe to all matching topics in the namespace. |
false |
MEDIUM |
|
To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. |
MEDIUM |
||
Sets the exchange pattern when the consumer creates an exchange. One of: [InOnly] [InOut] [InOptionalOut]. Enum values:
|
MEDIUM |
||
Allows to pre-configure the Pulsar component with common options that the endpoints will reuse. |
MEDIUM |
||
Group the consumer acknowledgments for the specified time in milliseconds - defaults to 100. |
100L |
MEDIUM |
|
Timeout for unacknowledged messages in milliseconds - defaults to 10000. |
10000L |
MEDIUM |
|
Whether to allow manual message acknowledgements. If this option is enabled, then messages are not acknowledged automatically after successful route completion. Instead, an instance of PulsarMessageReceipt is stored as a header on the org.apache.camel.Exchange. Messages can then be acknowledged using PulsarMessageReceipt at any time before the ackTimeout occurs. |
false |
MEDIUM |
|
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. |
false |
MEDIUM |
|
Name of the consumer when subscription is EXCLUSIVE. |
"sole-consumer" |
MEDIUM |
|
Prefix to add to consumer names when a SHARED or FAILOVER subscription is used. |
"cons" |
MEDIUM |
|
Size of the consumer queue - defaults to 10. |
10 |
MEDIUM |
|
Name of the topic where the messages which fail maxRedeliverCount times will be sent. Note: if not set, default topic name will be topicName-subscriptionName-DLQ. |
MEDIUM |
||
Maximum number of times that a message will be redelivered before being sent to the dead letter queue. If this value is not set, no Dead Letter Policy will be created. |
MEDIUM |
||
Set the negative acknowledgement delay. |
60000000L |
MEDIUM |
|
Number of consumers - defaults to 1. |
1 |
MEDIUM |
|
Enable compacted topic reading. |
false |
MEDIUM |
|
Control the initial position in the topic of a newly created subscription. Default is latest message. One of: [EARLIEST] [LATEST]. Enum values:
|
"LATEST" |
MEDIUM |
|
Name of the subscription to use. |
"subs" |
MEDIUM |
|
Determines to which topics this consumer should be subscribed to - Persistent, Non-Persistent, or both. Only used with pattern subscriptions. One of: [PersistentOnly] [NonPersistentOnly] [AllTopics]. Enum values:
|
"PersistentOnly" |
MEDIUM |
|
Type of the subscription EXCLUSIVESHAREDFAILOVERKEY_SHARED, defaults to EXCLUSIVE One of: [EXCLUSIVE] [SHARED] [FAILOVER] [KEY_SHARED]. Enum values:
|
"EXCLUSIVE" |
MEDIUM |
|
Whether the topic is a pattern (regular expression) that allows the consumer to subscribe to all matching topics in the namespace. |
false |
MEDIUM |
|
Provide a factory to create an alternate implementation of PulsarMessageReceipt. |
MEDIUM |
||
The pulsar auto configuration. |
MEDIUM |
||
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. |
true |
MEDIUM |
|
The pulsar client. |
MEDIUM |
The camel-pulsar source connector has no converters out of the box.
The camel-pulsar source connector has no transforms out of the box.
The camel-pulsar source connector has no aggregation strategies out of the box.