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 Deprecated 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(String batcherBuilder)Control batching method used by the producer.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuilderbatcherBuilder(org.apache.pulsar.client.api.BatcherBuilder 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(org.apache.pulsar.client.api.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.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)Deprecated.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermaxPendingMessagesAcrossPartitions(String maxPendingMessagesAcrossPartitions)Deprecated.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRouter(String messageRouter)Custom Message Router to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRouter(org.apache.pulsar.client.api.MessageRouter messageRouter)Custom Message Router to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRoutingMode(String messageRoutingMode)Message Routing Mode to use.default PulsarEndpointBuilderFactory.PulsarEndpointProducerBuildermessageRoutingMode(org.apache.pulsar.client.api.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(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
-
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
-
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
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
-
-