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.EndpointProducerBuilderBuilder for endpoint producers for the Pulsar component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default PulsarEndpointBuilderFactory.AdvancedPulsarEndpointProducerBuilderadvanced()default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderauthenticationClass(String authenticationClass)The Authentication FQCN to be used while creating the client from URI.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderauthenticationParams(String authenticationParams)The Authentication Parameters to be used while creating the client from URI.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatcherBuilder(Object batcherBuilder)Control batching method used by the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatcherBuilder(String batcherBuilder)Control batching method used by the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatchingEnabled(boolean batchingEnabled)Control whether automatic batching of messages is enabled for the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatchingEnabled(String batchingEnabled)Control whether automatic batching of messages is enabled for the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatchingMaxMessages(int batchingMaxMessages)The maximum size to batch messages.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatchingMaxMessages(String batchingMaxMessages)The maximum size to batch messages.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatchingMaxPublishDelayMicros(long batchingMaxPublishDelayMicros)The maximum time period within which the messages sent will be batched if batchingEnabled is true.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatchingMaxPublishDelayMicros(String batchingMaxPublishDelayMicros)The maximum time period within which the messages sent will be batched if batchingEnabled is true.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderblockIfQueueFull(boolean blockIfQueueFull)Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderblockIfQueueFull(String blockIfQueueFull)Whether to block the producing thread if pending messages queue is full or to throw a ProducerQueueIsFullError.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildercompressionType(String compressionType)Compression type to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildercompressionType(PulsarEndpointBuilderFactory.CompressionType compressionType)Compression type to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderinitialSequenceId(long initialSequenceId)The first message published will have a sequence Id of initialSequenceId 1.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderinitialSequenceId(String initialSequenceId)The first message published will have a sequence Id of initialSequenceId 1.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderlazyStartProducer(boolean lazyStartProducer)Whether the producer should be started lazy (on the first message).default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderlazyStartProducer(String lazyStartProducer)Whether the producer should be started lazy (on the first message).default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermaxPendingMessages(int maxPendingMessages)Size of the pending massages queue.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermaxPendingMessages(String maxPendingMessages)Size of the pending massages queue.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermaxPendingMessagesAcrossPartitions(int maxPendingMessagesAcrossPartitions)The maximum number of pending messages for partitioned topics.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermaxPendingMessagesAcrossPartitions(String maxPendingMessagesAcrossPartitions)The maximum number of pending messages for partitioned topics.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRouter(Object messageRouter)Custom Message Router to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRouter(String messageRouter)Custom Message Router to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRoutingMode(String messageRoutingMode)Message Routing Mode to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRoutingMode(PulsarEndpointBuilderFactory.MessageRoutingMode messageRoutingMode)Message Routing Mode to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderproducerName(String producerName)Name of the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildersendTimeoutMs(int sendTimeoutMs)Send timeout in milliseconds.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildersendTimeoutMs(String sendTimeoutMs)Send timeout in milliseconds.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderserviceUrl(String serviceUrl)The Pulsar Service URL to point while creating the client from URI.
-
-
-
Method Detail
-
advanced
default PulsarEndpointBuilderFactory.AdvancedPulsarEndpointProducerBuilder 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
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder serviceUrl(String 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(Object 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
-
compressionType
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder compressionType(PulsarEndpointBuilderFactory.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
-
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
-
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: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- 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
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: <code>int</code> type. Default: 50000 Group: producer- Parameters:
maxPendingMessagesAcrossPartitions- the value to set- Returns:
- the dsl builder
-
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 a <code>int</code> type. Default: 50000 Group: producer- Parameters:
maxPendingMessagesAcrossPartitions- the value to set- Returns:
- the dsl builder
-
messageRouter
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder messageRouter(Object 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(PulsarEndpointBuilderFactory.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
default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilder sendTimeoutMs(int 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
-
-