Class ServiceBusConfiguration
java.lang.Object
org.apache.camel.component.azure.servicebus.ServiceBusConfiguration
- All Implemented Interfaces:
Cloneable,org.apache.camel.spi.HeaderFilterStrategyAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()com.azure.core.amqp.AmqpRetryOptionsSets the retry options for Service Bus clients.com.azure.core.amqp.AmqpTransportTypeSets the transport type by which all the communication with Azure Service Bus occurs.com.azure.core.util.ClientOptionsSets 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.Fully Qualified Namespace of the service busorg.apache.camel.spi.HeaderFilterStrategyTo use a custom HeaderFilterStrategy to filter headers (application properties) to and from the Camel message.Sets the amount of time to continue auto-renewing the lock.intSets maximum number of concurrent callsintSets the prefetch count of the receiver.com.azure.messaging.servicebus.ServiceBusProcessorClientSets the processorClient in order to consume messages by the consumerSets the desired operation to be used in the producercom.azure.core.amqp.ProxyOptionsSets the proxy configuration to use for ServiceBusSenderClient.Sets OffsetDateTime at which the message should appear in the Service Bus queue or topic.com.azure.messaging.servicebus.ServiceBusSenderClientSets senderClient to be used in the producer.com.azure.messaging.servicebus.models.ServiceBusReceiveModeSets the receive mode for the receiver.com.azure.messaging.servicebus.ServiceBusTransactionContextRepresents transaction in service.The service bus type of connection to execute.SessionId for the message.com.azure.messaging.servicebus.models.SubQueueSets the type of the SubQueue to connect to.Sets the name of the subscription in the topic to listen to. topicOrQueueName and serviceBusType=topic must also be set.com.azure.core.credential.TokenCredentialA TokenCredential for Azure AD authentication.Selected topic name or the queue name, that is depending on serviceBusType config.booleanisBinary()Set binary mode.booleanEnable application level deadlettering to the subscription deadletter subqueue if deadletter related headers are set.booleanFlag to enable sessions.voidsetAmqpRetryOptions(com.azure.core.amqp.AmqpRetryOptions amqpRetryOptions) voidsetAmqpTransportType(com.azure.core.amqp.AmqpTransportType amqpTransportType) voidsetBinary(boolean binary) voidsetClientOptions(com.azure.core.util.ClientOptions clientOptions) voidsetConnectionString(String connectionString) voidsetCredentialType(CredentialType credentialType) Determines the credential strategy to adoptvoidsetEnableDeadLettering(boolean enableDeadLettering) voidsetFullyQualifiedNamespace(String fullyQualifiedNamespace) voidsetHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) voidsetMaxAutoLockRenewDuration(Duration maxAutoLockRenewDuration) voidsetMaxConcurrentCalls(int maxConcurrentCalls) voidsetPrefetchCount(int prefetchCount) voidsetProcessorClient(com.azure.messaging.servicebus.ServiceBusProcessorClient processorClient) voidsetProducerOperation(ServiceBusProducerOperationDefinition producerOperation) voidsetProxyOptions(com.azure.core.amqp.ProxyOptions proxyOptions) voidsetScheduledEnqueueTime(OffsetDateTime scheduledEnqueueTime) voidsetSenderClient(com.azure.messaging.servicebus.ServiceBusSenderClient senderClient) voidsetServiceBusReceiveMode(com.azure.messaging.servicebus.models.ServiceBusReceiveMode serviceBusReceiveMode) voidsetServiceBusTransactionContext(com.azure.messaging.servicebus.ServiceBusTransactionContext serviceBusTransactionContext) voidsetServiceBusType(ServiceBusType serviceBusType) voidsetSessionEnabled(boolean sessionEnabled) voidsetSessionId(String sessionId) voidsetSubQueue(com.azure.messaging.servicebus.models.SubQueue subQueue) voidsetSubscriptionName(String subscriptionName) voidsetTokenCredential(com.azure.core.credential.TokenCredential tokenCredential) voidsetTopicOrQueueName(String topicOrQueueName)
-
Constructor Details
-
ServiceBusConfiguration
public ServiceBusConfiguration()
-
-
Method Details
-
isSessionEnabled
public boolean isSessionEnabled()Flag to enable sessions. Default is false. Used to create processor client for message consumer -
setSessionEnabled
public void setSessionEnabled(boolean sessionEnabled) -
getSessionId
SessionId for the message. To set this field, sessionEnabled should be set to true. -
setSessionId
-
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 ServiceBusSenderClient. 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) -
getHeaderFilterStrategy
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()To use a custom HeaderFilterStrategy to filter headers (application properties) to and from the Camel message.- Specified by:
getHeaderFilterStrategyin interfaceorg.apache.camel.spi.HeaderFilterStrategyAware
-
setHeaderFilterStrategy
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) - Specified by:
setHeaderFilterStrategyin interfaceorg.apache.camel.spi.HeaderFilterStrategyAware
-
getProcessorClient
public com.azure.messaging.servicebus.ServiceBusProcessorClient getProcessorClient()Sets the processorClient in order to consume messages by the consumer -
setProcessorClient
public void setProcessorClient(com.azure.messaging.servicebus.ServiceBusProcessorClient processorClient) -
isEnableDeadLettering
public boolean isEnableDeadLettering()Enable application level deadlettering to the subscription deadletter subqueue if deadletter related headers are set. -
setEnableDeadLettering
public void setEnableDeadLettering(boolean enableDeadLettering) -
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) -
getMaxConcurrentCalls
public int getMaxConcurrentCalls()Sets maximum number of concurrent calls -
setMaxConcurrentCalls
public void setMaxConcurrentCalls(int maxConcurrentCalls) -
getSenderClient
public com.azure.messaging.servicebus.ServiceBusSenderClient getSenderClient()Sets senderClient to be used in the producer. -
setSenderClient
public void setSenderClient(com.azure.messaging.servicebus.ServiceBusSenderClient senderClient) -
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) -
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
-
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) -
getCredentialType
-
setCredentialType
Determines the credential strategy to adopt -
copy
-