| Constructor and Description |
|---|
PulsarConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
PulsarConfiguration |
copy()
Returns a copy of this configuration
|
long |
getAckGroupTimeMillis() |
long |
getAckTimeoutMillis() |
String |
getAuthenticationClass() |
String |
getAuthenticationParams() |
org.apache.pulsar.client.api.BatcherBuilder |
getBatcherBuilder() |
int |
getBatchingMaxMessages() |
long |
getBatchingMaxPublishDelayMicros() |
org.apache.pulsar.client.api.CompressionType |
getCompressionType() |
String |
getConsumerName() |
String |
getConsumerNamePrefix() |
int |
getConsumerQueueSize() |
String |
getDeadLetterTopic() |
long |
getInitialSequenceId() |
int |
getMaxPendingMessages() |
int |
getMaxPendingMessagesAcrossPartitions() |
Integer |
getMaxRedeliverCount() |
org.apache.pulsar.client.api.MessageRouter |
getMessageRouter()
Set a custom Message Router.
|
org.apache.pulsar.client.api.MessageRoutingMode |
getMessageRoutingMode()
Set the message routing mode for the producer.
|
long |
getNegativeAckRedeliveryDelayMicros() |
int |
getNumberOfConsumers() |
int |
getNumberOfConsumerThreads() |
String |
getProducerName() |
int |
getSendTimeoutMs() |
String |
getServiceUrl() |
SubscriptionInitialPosition |
getSubscriptionInitialPosition() |
String |
getSubscriptionName() |
org.apache.pulsar.client.api.RegexSubscriptionMode |
getSubscriptionTopicsMode() |
SubscriptionType |
getSubscriptionType() |
boolean |
isAllowManualAcknowledgement() |
boolean |
isBatchingEnabled() |
boolean |
isBlockIfQueueFull() |
boolean |
isMessageListener() |
boolean |
isReadCompacted()
Enable compacted topic reading.
|
boolean |
isTopicsPattern() |
void |
setAckGroupTimeMillis(long ackGroupTimeMillis)
Group the consumer acknowledgments for the specified time in milliseconds - defaults to 100
|
void |
setAckTimeoutMillis(long ackTimeoutMillis)
Timeout for unacknowledged messages in milliseconds - defaults to 10000
|
void |
setAllowManualAcknowledgement(boolean allowManualAcknowledgement)
Whether to allow manual message acknowledgements.
|
void |
setAuthenticationClass(String authenticationClass)
The Authentication FQCN to be used while creating the client from URI
|
void |
setAuthenticationParams(String authenticationParams)
The Authentication Parameters to be used while creating the client from URI
|
void |
setBatcherBuilder(org.apache.pulsar.client.api.BatcherBuilder batcherBuilder)
Control batching method of the Pulsar producer.
|
void |
setBatchingEnabled(boolean batchingEnabled)
Control whether automatic batching of messages is enabled for the producer.
|
void |
setBatchingMaxMessages(int batchingMaxMessages)
Set the maximum number of messages permitted in a batch.
|
void |
setBatchingMaxPublishDelayMicros(long batchingMaxPublishDelayMicros)
Set the time period within which the messages sent will be batched if batch messages are enabled.
|
void |
setBlockIfQueueFull(boolean blockIfQueueFull)
Set whether the send and asyncSend operations should block when the outgoing message queue is full.
|
void |
setCompressionType(org.apache.pulsar.client.api.CompressionType compressionType)
Set the compression type for the producer.
|
void |
setCompressionType(String compressionType)
Set the compression type for the producer.
|
void |
setConsumerName(String consumerName)
Name of the consumer when subscription is EXCLUSIVE
|
void |
setConsumerNamePrefix(String consumerNamePrefix)
Prefix to add to consumer names when a SHARED or FAILOVER subscription is used
|
void |
setConsumerQueueSize(int consumerQueueSize)
Size of the consumer queue - defaults to 10
|
void |
setDeadLetterTopic(String deadLetterTopic) |
void |
setInitialSequenceId(long initialSequenceId)
Set the baseline for the sequence ids for messages published by the producer.
|
void |
setMaxPendingMessages(int maxPendingMessages)
Set the max size of the queue holding the messages pending to receive an acknowledgment from the broker.
|
void |
setMaxPendingMessagesAcrossPartitions(int maxPendingMessagesAcrossPartitions)
Set the number of max pending messages across all the partitions.
|
void |
setMaxRedeliverCount(Integer maxRedeliverCount) |
void |
setMessageListener(boolean messageListener) |
void |
setMessageRouter(org.apache.pulsar.client.api.MessageRouter messageRouter) |
void |
setMessageRoutingMode(org.apache.pulsar.client.api.MessageRoutingMode messageRoutingMode) |
void |
setNegativeAckRedeliveryDelayMicros(long negativeAckRedeliveryDelayMicros)
Set the negative acknowledgement delay
|
void |
setNumberOfConsumers(int numberOfConsumers)
Number of consumers - defaults to 1
|
void |
setNumberOfConsumerThreads(int numberOfConsumerThreads)
Number of consumers threads - defaults to 1
|
void |
setProducerName(String producerName)
Name of the producer.
|
void |
setReadCompacted(boolean readCompacted) |
void |
setSendTimeoutMs(int sendTimeoutMs)
Send timeout in milliseconds.
|
void |
setServiceUrl(String serviceUrl)
The Pulsar Service URL to point while creating the client from URI
|
void |
setSubscriptionInitialPosition(SubscriptionInitialPosition subscriptionInitialPosition)
Control the initial position in the topic of a newly created subscription.
|
void |
setSubscriptionName(String subscriptionName)
Name of the subscription to use
|
void |
setSubscriptionTopicsMode(org.apache.pulsar.client.api.RegexSubscriptionMode subscriptionTopicsMode)
Determines to which topics this consumer should be subscribed to - Persistent, Non-Persistent, or both.
|
void |
setSubscriptionType(SubscriptionType subscriptionType)
Type of the subscription [EXCLUSIVE|SHARED|FAILOVER|KEY_SHARED], defaults to EXCLUSIVE
|
void |
setTopicsPattern(boolean topicsPattern)
Whether the topic is a pattern (regular expression) that allows the consumer to subscribe to all matching topics
in the namespace
|
public PulsarConfiguration copy()
public boolean isTopicsPattern()
public void setTopicsPattern(boolean topicsPattern)
public org.apache.pulsar.client.api.RegexSubscriptionMode getSubscriptionTopicsMode()
public void setSubscriptionTopicsMode(org.apache.pulsar.client.api.RegexSubscriptionMode subscriptionTopicsMode)
public String getSubscriptionName()
public void setSubscriptionName(String subscriptionName)
public SubscriptionType getSubscriptionType()
public void setSubscriptionType(SubscriptionType subscriptionType)
public int getNumberOfConsumers()
public void setNumberOfConsumers(int numberOfConsumers)
public int getConsumerQueueSize()
public void setConsumerQueueSize(int consumerQueueSize)
public String getConsumerName()
public void setConsumerName(String consumerName)
public String getProducerName()
public void setProducerName(String producerName)
public String getConsumerNamePrefix()
public void setConsumerNamePrefix(String consumerNamePrefix)
public boolean isAllowManualAcknowledgement()
public void setAllowManualAcknowledgement(boolean allowManualAcknowledgement)
PulsarMessageReceipt is stored as a header on the
Exchange. Messages can then be acknowledged using PulsarMessageReceipt at any
time before the ackTimeout occurs.public long getAckTimeoutMillis()
public void setAckTimeoutMillis(long ackTimeoutMillis)
public long getAckGroupTimeMillis()
public void setAckGroupTimeMillis(long ackGroupTimeMillis)
public void setSendTimeoutMs(int sendTimeoutMs)
public int getSendTimeoutMs()
public void setBlockIfQueueFull(boolean blockIfQueueFull)
public boolean isBlockIfQueueFull()
public void setMaxPendingMessages(int maxPendingMessages)
public int getMaxPendingMessages()
public void setMaxPendingMessagesAcrossPartitions(int maxPendingMessagesAcrossPartitions)
public int getMaxPendingMessagesAcrossPartitions()
public void setBatchingMaxPublishDelayMicros(long batchingMaxPublishDelayMicros)
public long getBatchingMaxPublishDelayMicros()
public void setBatchingMaxMessages(int batchingMaxMessages)
public int getBatchingMaxMessages()
public void setBatchingEnabled(boolean batchingEnabled)
public boolean isBatchingEnabled()
public void setBatcherBuilder(org.apache.pulsar.client.api.BatcherBuilder batcherBuilder)
public org.apache.pulsar.client.api.BatcherBuilder getBatcherBuilder()
public void setSubscriptionInitialPosition(SubscriptionInitialPosition subscriptionInitialPosition)
public SubscriptionInitialPosition getSubscriptionInitialPosition()
public boolean isReadCompacted()
public void setReadCompacted(boolean readCompacted)
public void setInitialSequenceId(long initialSequenceId)
public long getInitialSequenceId()
public void setCompressionType(String compressionType)
public void setCompressionType(org.apache.pulsar.client.api.CompressionType compressionType)
public org.apache.pulsar.client.api.CompressionType getCompressionType()
public org.apache.pulsar.client.api.MessageRoutingMode getMessageRoutingMode()
public void setMessageRoutingMode(org.apache.pulsar.client.api.MessageRoutingMode messageRoutingMode)
public org.apache.pulsar.client.api.MessageRouter getMessageRouter()
public void setMessageRouter(org.apache.pulsar.client.api.MessageRouter messageRouter)
public long getNegativeAckRedeliveryDelayMicros()
public void setNegativeAckRedeliveryDelayMicros(long negativeAckRedeliveryDelayMicros)
public Integer getMaxRedeliverCount()
public void setMaxRedeliverCount(Integer maxRedeliverCount)
public String getDeadLetterTopic()
public void setDeadLetterTopic(String deadLetterTopic)
public boolean isMessageListener()
public void setMessageListener(boolean messageListener)
public int getNumberOfConsumerThreads()
public void setNumberOfConsumerThreads(int numberOfConsumerThreads)
public String getServiceUrl()
public void setServiceUrl(String serviceUrl)
public String getAuthenticationClass()
public void setAuthenticationClass(String authenticationClass)
public String getAuthenticationParams()
public void setAuthenticationParams(String authenticationParams)
Apache Camel