Class ServiceBusConfiguration
java.lang.Object
org.apache.camel.component.azure.servicebus.ServiceBusConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
com.azure.core.amqp.AmqpRetryOptions
Sets the retry options for Service Bus clients.com.azure.core.amqp.AmqpTransportType
Sets the transport type by which all the communication with Azure Service Bus occurs.com.azure.core.util.ClientOptions
Sets the ClientOptions to be sent from the client built from this builder, enabling customization of certain properties, as well as support the addition of custom header information.Sets the connection string for a Service Bus namespace or a specific Service Bus resource.Sets the desired operation to be used in the consumerFully Qualified Namespace of the service busSets the amount of time to continue auto-renewing the lock.Set the max number of messages to be peeked during the peek operation.int
Sets the prefetch count of the receiver.Sets the desired operation to be used in the producercom.azure.core.amqp.ProxyOptions
Sets the proxy configuration to use for ServiceBusSenderAsyncClient.com.azure.messaging.servicebus.ServiceBusReceiverAsyncClient
Sets the receiverAsyncClient in order to consume messages by the consumerSets OffsetDateTime at which the message should appear in the Service Bus queue or topic.com.azure.messaging.servicebus.ServiceBusSenderAsyncClient
Sets SenderAsyncClient to be used in the producer.com.azure.messaging.servicebus.models.ServiceBusReceiveMode
Sets the receive mode for the receiver.com.azure.messaging.servicebus.ServiceBusTransactionContext
Represents transaction in service.The service bus type of connection to execute.com.azure.messaging.servicebus.models.SubQueue
Sets the type of the SubQueue to connect to.Sets the name of the subscription in the topic to listen to.com.azure.core.credential.TokenCredential
A TokenCredential for Azure AD authentication.Selected topic name or the queue name, that is depending on serviceBusType config.boolean
isBinary()
Set binary mode.boolean
Disables auto-complete and auto-abandon of received messages.void
setAmqpRetryOptions
(com.azure.core.amqp.AmqpRetryOptions amqpRetryOptions) void
setAmqpTransportType
(com.azure.core.amqp.AmqpTransportType amqpTransportType) void
setBinary
(boolean binary) void
setClientOptions
(com.azure.core.util.ClientOptions clientOptions) void
setConnectionString
(String connectionString) void
setConsumerOperation
(ServiceBusConsumerOperationDefinition consumerOperation) void
setDisableAutoComplete
(boolean disableAutoComplete) void
setFullyQualifiedNamespace
(String fullyQualifiedNamespace) void
setMaxAutoLockRenewDuration
(Duration maxAutoLockRenewDuration) void
setPeekNumMaxMessages
(Integer peekNumMaxMessages) void
setPrefetchCount
(int prefetchCount) void
setProducerOperation
(ServiceBusProducerOperationDefinition producerOperation) void
setProxyOptions
(com.azure.core.amqp.ProxyOptions proxyOptions) void
setReceiverAsyncClient
(com.azure.messaging.servicebus.ServiceBusReceiverAsyncClient receiverAsyncClient) void
setScheduledEnqueueTime
(OffsetDateTime scheduledEnqueueTime) void
setSenderAsyncClient
(com.azure.messaging.servicebus.ServiceBusSenderAsyncClient senderAsyncClient) void
setServiceBusReceiveMode
(com.azure.messaging.servicebus.models.ServiceBusReceiveMode serviceBusReceiveMode) void
setServiceBusTransactionContext
(com.azure.messaging.servicebus.ServiceBusTransactionContext serviceBusTransactionContext) void
setServiceBusType
(ServiceBusType serviceBusType) void
setSubQueue
(com.azure.messaging.servicebus.models.SubQueue subQueue) void
setSubscriptionName
(String subscriptionName) void
setTokenCredential
(com.azure.core.credential.TokenCredential tokenCredential) void
setTopicOrQueueName
(String topicOrQueueName)
-
Constructor Details
-
ServiceBusConfiguration
public ServiceBusConfiguration()
-
-
Method Details
-
getTopicOrQueueName
Selected topic name or the queue name, that is depending on serviceBusType config. For example if serviceBusType=queue, then this will be the queue name and if serviceBusType=topic, this will be the topic name. -
setTopicOrQueueName
-
getServiceBusType
The service bus type of connection to execute. Queue is for typical queue option and topic for subscription based model. -
setServiceBusType
-
getConnectionString
Sets the connection string for a Service Bus namespace or a specific Service Bus resource. -
setConnectionString
-
getSubscriptionName
Sets the name of the subscription in the topic to listen to. topicOrQueueName and serviceBusType=topic must also be set. This property is required if serviceBusType=topic and the consumer is in use. -
setSubscriptionName
-
getClientOptions
public com.azure.core.util.ClientOptions getClientOptions()Sets the ClientOptions to be sent from the client built from this builder, enabling customization of certain properties, as well as support the addition of custom header information. -
setClientOptions
public void setClientOptions(com.azure.core.util.ClientOptions clientOptions) -
getProxyOptions
public com.azure.core.amqp.ProxyOptions getProxyOptions()Sets the proxy configuration to use for ServiceBusSenderAsyncClient. When a proxy is configured, AMQP_WEB_SOCKETS must be used for the transport type. -
setProxyOptions
public void setProxyOptions(com.azure.core.amqp.ProxyOptions proxyOptions) -
getAmqpRetryOptions
public com.azure.core.amqp.AmqpRetryOptions getAmqpRetryOptions()Sets the retry options for Service Bus clients. If not specified, the default retry options are used. -
setAmqpRetryOptions
public void setAmqpRetryOptions(com.azure.core.amqp.AmqpRetryOptions amqpRetryOptions) -
getAmqpTransportType
public com.azure.core.amqp.AmqpTransportType getAmqpTransportType()Sets the transport type by which all the communication with Azure Service Bus occurs. Default value is AMQP. -
setAmqpTransportType
public void setAmqpTransportType(com.azure.core.amqp.AmqpTransportType amqpTransportType) -
getReceiverAsyncClient
public com.azure.messaging.servicebus.ServiceBusReceiverAsyncClient getReceiverAsyncClient()Sets the receiverAsyncClient in order to consume messages by the consumer -
setReceiverAsyncClient
public void setReceiverAsyncClient(com.azure.messaging.servicebus.ServiceBusReceiverAsyncClient receiverAsyncClient) -
isDisableAutoComplete
public boolean isDisableAutoComplete()Disables auto-complete and auto-abandon of received messages. By default, a successfully processed message is completed. If an error happens when the message is abandoned. -
setDisableAutoComplete
public void setDisableAutoComplete(boolean disableAutoComplete) -
getServiceBusReceiveMode
public com.azure.messaging.servicebus.models.ServiceBusReceiveMode getServiceBusReceiveMode()Sets the receive mode for the receiver. -
setServiceBusReceiveMode
public void setServiceBusReceiveMode(com.azure.messaging.servicebus.models.ServiceBusReceiveMode serviceBusReceiveMode) -
getMaxAutoLockRenewDuration
Sets the amount of time to continue auto-renewing the lock. Setting ZERO disables auto-renewal. For ServiceBus receive mode (RECEIVE_AND_DELETE RECEIVE_AND_DELETE), auto-renewal is disabled. -
setMaxAutoLockRenewDuration
-
getPrefetchCount
public int getPrefetchCount()Sets the prefetch count of the receiver. For both PEEK_LOCK PEEK_LOCK and RECEIVE_AND_DELETE RECEIVE_AND_DELETE receive modes the default value is 1. Prefetch speeds up the message flow by aiming to have a message readily available for local retrieval when and before the application asks for one using receive message. Setting a non-zero value will prefetch that number of messages. Setting the value to zero turns prefetch off. -
setPrefetchCount
public void setPrefetchCount(int prefetchCount) -
getSubQueue
public com.azure.messaging.servicebus.models.SubQueue getSubQueue()Sets the type of the SubQueue to connect to. -
setSubQueue
public void setSubQueue(com.azure.messaging.servicebus.models.SubQueue subQueue) -
getSenderAsyncClient
public com.azure.messaging.servicebus.ServiceBusSenderAsyncClient getSenderAsyncClient()Sets SenderAsyncClient to be used in the producer. -
setSenderAsyncClient
public void setSenderAsyncClient(com.azure.messaging.servicebus.ServiceBusSenderAsyncClient senderAsyncClient) -
getFullyQualifiedNamespace
Fully Qualified Namespace of the service bus -
setFullyQualifiedNamespace
-
getTokenCredential
public com.azure.core.credential.TokenCredential getTokenCredential()A TokenCredential for Azure AD authentication. -
setTokenCredential
public void setTokenCredential(com.azure.core.credential.TokenCredential tokenCredential) -
getConsumerOperation
Sets the desired operation to be used in the consumer -
setConsumerOperation
-
getProducerOperation
Sets the desired operation to be used in the producer -
setProducerOperation
-
getServiceBusTransactionContext
public com.azure.messaging.servicebus.ServiceBusTransactionContext getServiceBusTransactionContext()Represents transaction in service. This object just contains transaction id. -
setServiceBusTransactionContext
public void setServiceBusTransactionContext(com.azure.messaging.servicebus.ServiceBusTransactionContext serviceBusTransactionContext) -
getScheduledEnqueueTime
Sets OffsetDateTime at which the message should appear in the Service Bus queue or topic. -
setScheduledEnqueueTime
-
getPeekNumMaxMessages
Set the max number of messages to be peeked during the peek operation. -
setPeekNumMaxMessages
-
isBinary
public boolean isBinary()Set binary mode. If true, message body will be sent as byte[]. By default, it is false. -
setBinary
public void setBinary(boolean binary) -
copy
-