Interface PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
PulsarEndpointBuilderFactory.PulsarEndpointBuilder
- Enclosing interface:
PulsarEndpointBuilderFactory
public static interface PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Pulsar component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()
authenticationClass
(String authenticationClass) The Authentication FQCN to be used while creating the client from URI.authenticationParams
(String authenticationParams) The Authentication Parameters to be used while creating the client from URI.batcherBuilder
(String batcherBuilder) Control batching method used by the producer.batcherBuilder
(org.apache.pulsar.client.api.BatcherBuilder batcherBuilder) Control batching method used by the producer.batchingEnabled
(boolean batchingEnabled) Control whether automatic batching of messages is enabled for the producer.batchingEnabled
(String batchingEnabled) Control whether automatic batching of messages is enabled for the producer.batchingMaxMessages
(int batchingMaxMessages) The maximum size to batch messages.batchingMaxMessages
(String batchingMaxMessages) The maximum size to batch messages.batchingMaxPublishDelayMicros
(long batchingMaxPublishDelayMicros) The maximum time period within which the messages sent will be batched if batchingEnabled is true.batchingMaxPublishDelayMicros
(String batchingMaxPublishDelayMicros) The maximum time period within which the messages sent will be batched if batchingEnabled is true.blockIfQueueFull
(boolean blockIfQueueFull) Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError.blockIfQueueFull
(String blockIfQueueFull) Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError.chunkingEnabled
(boolean chunkingEnabled) Control whether chunking of messages is enabled for the producer.chunkingEnabled
(String chunkingEnabled) Control whether chunking of messages is enabled for the producer.compressionType
(String compressionType) Compression type to use.compressionType
(org.apache.pulsar.client.api.CompressionType compressionType) Compression type to use.hashingScheme
(String hashingScheme) Hashing function to use when choosing the partition to use for a particular message.initialSequenceId
(long initialSequenceId) The first message published will have a sequence Id of initialSequenceId 1.initialSequenceId
(String initialSequenceId) The first message published will have a sequence Id of initialSequenceId 1.maxPendingMessages
(int maxPendingMessages) Size of the pending massages queue.maxPendingMessages
(String maxPendingMessages) Size of the pending massages queue.maxPendingMessagesAcrossPartitions
(int maxPendingMessagesAcrossPartitions) Deprecated.maxPendingMessagesAcrossPartitions
(String maxPendingMessagesAcrossPartitions) Deprecated.messageRouter
(String messageRouter) Custom Message Router to use.messageRouter
(org.apache.pulsar.client.api.MessageRouter messageRouter) Custom Message Router to use.messageRoutingMode
(String messageRoutingMode) Message Routing Mode to use.messageRoutingMode
(org.apache.pulsar.client.api.MessageRoutingMode messageRoutingMode) Message Routing Mode to use.producerName
(String producerName) Name of the producer.sendTimeoutMs
(int sendTimeoutMs) Send timeout in milliseconds.sendTimeoutMs
(String sendTimeoutMs) Send timeout in milliseconds.serviceUrl
(String serviceUrl) The Pulsar Service URL to point while creating the client from URI.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
authenticationClass
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder authenticationClass(String authenticationClass) The Authentication FQCN to be used while creating the client from URI. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
authenticationClass
- the value to set- Returns:
- the dsl builder
-
authenticationParams
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder authenticationParams(String authenticationParams) The Authentication Parameters to be used while creating the client from URI. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
authenticationParams
- the value to set- Returns:
- the dsl builder
-
serviceUrl
The Pulsar Service URL to point while creating the client from URI. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
serviceUrl
- the value to set- Returns:
- the dsl builder
-
batcherBuilder
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batcherBuilder(org.apache.pulsar.client.api.BatcherBuilder batcherBuilder) Control batching method used by the producer. The option is a: <code>org.apache.pulsar.client.api.BatcherBuilder</code> type. Default: DEFAULT Group: producer- Parameters:
batcherBuilder
- the value to set- Returns:
- the dsl builder
-
batcherBuilder
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batcherBuilder(String batcherBuilder) Control batching method used by the producer. The option will be converted to a <code>org.apache.pulsar.client.api.BatcherBuilder</code> type. Default: DEFAULT Group: producer- Parameters:
batcherBuilder
- the value to set- Returns:
- the dsl builder
-
batchingEnabled
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingEnabled(boolean batchingEnabled) Control whether automatic batching of messages is enabled for the producer. The option is a: <code>boolean</code> type. Default: true Group: producer- Parameters:
batchingEnabled
- the value to set- Returns:
- the dsl builder
-
batchingEnabled
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingEnabled(String batchingEnabled) Control whether automatic batching of messages is enabled for the producer. The option will be converted to a <code>boolean</code> type. Default: true Group: producer- Parameters:
batchingEnabled
- the value to set- Returns:
- the dsl builder
-
batchingMaxMessages
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingMaxMessages(int batchingMaxMessages) The maximum size to batch messages. The option is a: <code>int</code> type. Default: 1000 Group: producer- Parameters:
batchingMaxMessages
- the value to set- Returns:
- the dsl builder
-
batchingMaxMessages
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingMaxMessages(String batchingMaxMessages) The maximum size to batch messages. The option will be converted to a <code>int</code> type. Default: 1000 Group: producer- Parameters:
batchingMaxMessages
- the value to set- Returns:
- the dsl builder
-
batchingMaxPublishDelayMicros
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingMaxPublishDelayMicros(long batchingMaxPublishDelayMicros) The maximum time period within which the messages sent will be batched if batchingEnabled is true. The option is a: <code>long</code> type. Default: 1000 Group: producer- Parameters:
batchingMaxPublishDelayMicros
- the value to set- Returns:
- the dsl builder
-
batchingMaxPublishDelayMicros
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingMaxPublishDelayMicros(String batchingMaxPublishDelayMicros) The maximum time period within which the messages sent will be batched if batchingEnabled is true. The option will be converted to a <code>long</code> type. Default: 1000 Group: producer- Parameters:
batchingMaxPublishDelayMicros
- the value to set- Returns:
- the dsl builder
-
blockIfQueueFull
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder blockIfQueueFull(boolean blockIfQueueFull) Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
blockIfQueueFull
- the value to set- Returns:
- the dsl builder
-
blockIfQueueFull
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder blockIfQueueFull(String blockIfQueueFull) Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
blockIfQueueFull
- the value to set- Returns:
- the dsl builder
-
chunkingEnabled
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder chunkingEnabled(boolean chunkingEnabled) Control whether chunking of messages is enabled for the producer. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
chunkingEnabled
- the value to set- Returns:
- the dsl builder
-
chunkingEnabled
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder chunkingEnabled(String chunkingEnabled) Control whether chunking of messages is enabled for the producer. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
chunkingEnabled
- the value to set- Returns:
- the dsl builder
-
compressionType
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder compressionType(org.apache.pulsar.client.api.CompressionType compressionType) Compression type to use. The option is a: <code>org.apache.pulsar.client.api.CompressionType</code> type. Default: NONE Group: producer- Parameters:
compressionType
- the value to set- Returns:
- the dsl builder
-
compressionType
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder compressionType(String compressionType) Compression type to use. The option will be converted to a <code>org.apache.pulsar.client.api.CompressionType</code> type. Default: NONE Group: producer- Parameters:
compressionType
- the value to set- Returns:
- the dsl builder
-
hashingScheme
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder hashingScheme(String hashingScheme) Hashing function to use when choosing the partition to use for a particular message. The option is a: <code>java.lang.String</code> type. Default: JavaStringHash Group: producer- Parameters:
hashingScheme
- the value to set- Returns:
- the dsl builder
-
initialSequenceId
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder initialSequenceId(long initialSequenceId) The first message published will have a sequence Id of initialSequenceId 1. The option is a: <code>long</code> type. Default: -1 Group: producer- Parameters:
initialSequenceId
- the value to set- Returns:
- the dsl builder
-
initialSequenceId
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder initialSequenceId(String initialSequenceId) The first message published will have a sequence Id of initialSequenceId 1. The option will be converted to a <code>long</code> type. Default: -1 Group: producer- Parameters:
initialSequenceId
- the value to set- Returns:
- the dsl builder
-
maxPendingMessages
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder maxPendingMessages(int maxPendingMessages) Size of the pending massages queue. When the queue is full, by default, any further sends will fail unless blockIfQueueFull=true. The option is a: <code>int</code> type. Default: 1000 Group: producer- Parameters:
maxPendingMessages
- the value to set- Returns:
- the dsl builder
-
maxPendingMessages
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder maxPendingMessages(String maxPendingMessages) Size of the pending massages queue. When the queue is full, by default, any further sends will fail unless blockIfQueueFull=true. The option will be converted to a <code>int</code> type. Default: 1000 Group: producer- Parameters:
maxPendingMessages
- the value to set- Returns:
- the dsl builder
-
maxPendingMessagesAcrossPartitions
@Deprecated default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder maxPendingMessagesAcrossPartitions(int maxPendingMessagesAcrossPartitions) Deprecated.The maximum number of pending messages for partitioned topics. The maxPendingMessages value will be reduced if (number of partitions maxPendingMessages) exceeds this value. Partitioned topics have a pending message queue for each partition. The option is a: <code>int</code> type. Default: 50000 Group: producer- Parameters:
maxPendingMessagesAcrossPartitions
- the value to set- Returns:
- the dsl builder
-
maxPendingMessagesAcrossPartitions
@Deprecated default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder maxPendingMessagesAcrossPartitions(String maxPendingMessagesAcrossPartitions) Deprecated.The maximum number of pending messages for partitioned topics. The maxPendingMessages value will be reduced if (number of partitions maxPendingMessages) exceeds this value. Partitioned topics have a pending message queue for each partition. The option will be converted to a <code>int</code> type. Default: 50000 Group: producer- Parameters:
maxPendingMessagesAcrossPartitions
- the value to set- Returns:
- the dsl builder
-
messageRouter
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRouter(org.apache.pulsar.client.api.MessageRouter messageRouter) Custom Message Router to use. The option is a: <code>org.apache.pulsar.client.api.MessageRouter</code> type. Group: producer- Parameters:
messageRouter
- the value to set- Returns:
- the dsl builder
-
messageRouter
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRouter(String messageRouter) Custom Message Router to use. The option will be converted to a <code>org.apache.pulsar.client.api.MessageRouter</code> type. Group: producer- Parameters:
messageRouter
- the value to set- Returns:
- the dsl builder
-
messageRoutingMode
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRoutingMode(org.apache.pulsar.client.api.MessageRoutingMode messageRoutingMode) Message Routing Mode to use. The option is a: <code>org.apache.pulsar.client.api.MessageRoutingMode</code> type. Default: RoundRobinPartition Group: producer- Parameters:
messageRoutingMode
- the value to set- Returns:
- the dsl builder
-
messageRoutingMode
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRoutingMode(String messageRoutingMode) Message Routing Mode to use. The option will be converted to a <code>org.apache.pulsar.client.api.MessageRoutingMode</code> type. Default: RoundRobinPartition Group: producer- Parameters:
messageRoutingMode
- the value to set- Returns:
- the dsl builder
-
producerName
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder producerName(String producerName) Name of the producer. If unset, lets Pulsar select a unique identifier. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
producerName
- the value to set- Returns:
- the dsl builder
-
sendTimeoutMs
Send timeout in milliseconds. The option is a: <code>int</code> type. Default: 30000 Group: producer- Parameters:
sendTimeoutMs
- the value to set- Returns:
- the dsl builder
-
sendTimeoutMs
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder sendTimeoutMs(String sendTimeoutMs) Send timeout in milliseconds. The option will be converted to a <code>int</code> type. Default: 30000 Group: producer- Parameters:
sendTimeoutMs
- the value to set- Returns:
- the dsl builder
-