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
All Methods Instance Methods Default Methods Modifier and Type Method Description default PulsarEndpointBuilderFactory.AdvancedPulsarEndpointProducerBuilder
advanced()
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batcherBuilder(Object batcherBuilder)
Control batching method used by the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batcherBuilder(String batcherBuilder)
Control batching method used by the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batchingEnabled(boolean batchingEnabled)
Control whether automatic batching of messages is enabled for the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batchingEnabled(String batchingEnabled)
Control whether automatic batching of messages is enabled for the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batchingMaxMessages(int batchingMaxMessages)
The maximum size to batch messages.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batchingMaxMessages(String batchingMaxMessages)
The maximum size to batch messages.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batchingMaxPublishDelayMicros(long batchingMaxPublishDelayMicros)
The maximum time period within which the messages sent will be batched if batchingEnabled is true.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
batchingMaxPublishDelayMicros(String batchingMaxPublishDelayMicros)
The maximum time period within which the messages sent will be batched if batchingEnabled is true.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
blockIfQueueFull(boolean blockIfQueueFull)
Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
blockIfQueueFull(String blockIfQueueFull)
Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
compressionType(String compressionType)
Compression type to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
compressionType(PulsarEndpointBuilderFactory.CompressionType compressionType)
Compression type to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
initialSequenceId(long initialSequenceId)
The first message published will have a sequence Id of initialSequenceId 1.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
initialSequenceId(String initialSequenceId)
The first message published will have a sequence Id of initialSequenceId 1.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
maxPendingMessages(int maxPendingMessages)
Size of the pending massages queue.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
maxPendingMessages(String maxPendingMessages)
Size of the pending massages queue.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
maxPendingMessagesAcrossPartitions(int maxPendingMessagesAcrossPartitions)
The maximum number of pending messages for partitioned topics.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
maxPendingMessagesAcrossPartitions(String maxPendingMessagesAcrossPartitions)
The maximum number of pending messages for partitioned topics.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
messageRouter(Object messageRouter)
Custom Message Router to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
messageRouter(String messageRouter)
Custom Message Router to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
messageRoutingMode(String messageRoutingMode)
Message Routing Mode to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
messageRoutingMode(PulsarEndpointBuilderFactory.MessageRoutingMode messageRoutingMode)
Message Routing Mode to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
producerName(String producerName)
Name of the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
sendTimeoutMs(int sendTimeoutMs)
Send timeout in milliseconds.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder
sendTimeoutMs(String sendTimeoutMs)
Send timeout in milliseconds.
-
-
-
Method Detail
-
advanced
default PulsarEndpointBuilderFactory.AdvancedPulsarEndpointProducerBuilder advanced()
-
batcherBuilder
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batcherBuilder(Object batcherBuilder)
Control batching method used by the producer. The option is a:org.apache.pulsar.client.api.BatcherBuilder
type. Default: DEFAULT Group: producer
-
batcherBuilder
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batcherBuilder(String batcherBuilder)
Control batching method used by the producer. The option will be converted to aorg.apache.pulsar.client.api.BatcherBuilder
type. Default: DEFAULT Group: producer
-
batchingEnabled
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingEnabled(boolean batchingEnabled)
Control whether automatic batching of messages is enabled for the producer. The option is a:boolean
type. Default: true Group: producer
-
batchingEnabled
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingEnabled(String batchingEnabled)
Control whether automatic batching of messages is enabled for the producer. The option will be converted to aboolean
type. Default: true Group: producer
-
batchingMaxMessages
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingMaxMessages(int batchingMaxMessages)
The maximum size to batch messages. The option is a:int
type. Default: 1000 Group: producer
-
batchingMaxMessages
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder batchingMaxMessages(String batchingMaxMessages)
The maximum size to batch messages. The option will be converted to aint
type. Default: 1000 Group: producer
-
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:long
type. Default: 1000 Group: producer
-
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 along
type. Default: 1000 Group: producer
-
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:boolean
type. Default: false Group: producer
-
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 aboolean
type. Default: false Group: producer
-
compressionType
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder compressionType(PulsarEndpointBuilderFactory.CompressionType compressionType)
Compression type to use. The option is a:org.apache.pulsar.client.api.CompressionType
type. Default: NONE Group: producer
-
compressionType
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder compressionType(String compressionType)
Compression type to use. The option will be converted to aorg.apache.pulsar.client.api.CompressionType
type. Default: NONE Group: producer
-
initialSequenceId
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder initialSequenceId(long initialSequenceId)
The first message published will have a sequence Id of initialSequenceId 1. The option is a:long
type. Default: -1 Group: producer
-
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 along
type. Default: -1 Group: producer
-
lazyStartProducer
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a:boolean
type. Default: false Group: producer
-
lazyStartProducer
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to aboolean
type. Default: false Group: producer
-
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:int
type. Default: 1000 Group: producer
-
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 aint
type. Default: 1000 Group: producer
-
maxPendingMessagesAcrossPartitions
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder maxPendingMessagesAcrossPartitions(int maxPendingMessagesAcrossPartitions)
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:int
type. Default: 50000 Group: producer
-
maxPendingMessagesAcrossPartitions
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder maxPendingMessagesAcrossPartitions(String maxPendingMessagesAcrossPartitions)
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 aint
type. Default: 50000 Group: producer
-
messageRouter
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRouter(Object messageRouter)
Custom Message Router to use. The option is a:org.apache.pulsar.client.api.MessageRouter
type. Group: producer
-
messageRouter
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRouter(String messageRouter)
Custom Message Router to use. The option will be converted to aorg.apache.pulsar.client.api.MessageRouter
type. Group: producer
-
messageRoutingMode
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRoutingMode(PulsarEndpointBuilderFactory.MessageRoutingMode messageRoutingMode)
Message Routing Mode to use. The option is a:org.apache.pulsar.client.api.MessageRoutingMode
type. Default: RoundRobinPartition Group: producer
-
messageRoutingMode
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRoutingMode(String messageRoutingMode)
Message Routing Mode to use. The option will be converted to aorg.apache.pulsar.client.api.MessageRoutingMode
type. Default: RoundRobinPartition Group: producer
-
producerName
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder producerName(String producerName)
Name of the producer. If unset, lets Pulsar select a unique identifier. The option is a:java.lang.String
type. Group: producer
-
sendTimeoutMs
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder sendTimeoutMs(int sendTimeoutMs)
Send timeout in milliseconds. The option is a:int
type. Default: 30000 Group: producer
-
sendTimeoutMs
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder sendTimeoutMs(String sendTimeoutMs)
Send timeout in milliseconds. The option will be converted to aint
type. Default: 30000 Group: producer
-
-