Class AzureServiceBusJmsProperties
java.lang.Object
com.azure.spring.cloud.autoconfigure.jms.properties.AzureServiceBusJmsProperties
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@ConfigurationProperties(prefix="spring.jms.servicebus")
public class AzureServiceBusJmsProperties
extends Object
implements org.springframework.beans.factory.InitializingBean
ConfigurationProperties for configuring Azure Service Bus JMS.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProperties to configureJmsListenerforAbstractJmsListenerContainerFactory.static classProperties to configureJmsDefaultPrefetchPolicyforJmsConnectionFactory. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidValidate spring.jms.servicebus related properties.Get the connection string to connect to a Service Bus namesapce.Get the connection idle timeout duration.Get the listener related properties.org.springframework.boot.autoconfigure.jms.JmsPoolConnectionFactoryPropertiesgetPool()The properties for a pooled connection factory.Get the prefetch policy related properties.Get the pricing tier for a Service Bus namespace.Get the Service Bus topic client ID.booleanWhether to enable Service Bus JMS autoconfiguration.voidsetConnectionString(String connectionString) Set the connection string to connect to a Service Bus namesapce.voidsetEnabled(boolean enabled) Set whether to enable Service Bus JMS autoconfiguation.voidsetIdleTimeout(Duration idleTimeout) Set the connection idle timeout duration.voidsetPricingTier(String pricingTier) Set the pricing tier for a Service Bus namespace.voidsetTopicClientId(String topicClientId) Set the Service Bus topic client ID.
-
Field Details
-
PREFIX
Service Bus JMS properties prefix.- See Also:
-
-
Constructor Details
-
AzureServiceBusJmsProperties
public AzureServiceBusJmsProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether to enable Service Bus JMS autoconfiguration.- Returns:
- Whether to enable Service Bus autoconfiguration
-
setEnabled
public void setEnabled(boolean enabled) Set whether to enable Service Bus JMS autoconfiguation.- Parameters:
enabled- whether to enable Service Bus autoconfiguration.
-
getPool
public org.springframework.boot.autoconfigure.jms.JmsPoolConnectionFactoryProperties getPool()The properties for a pooled connection factory.- Returns:
- the properties for a pooled connection factory.
-
getConnectionString
Get the connection string to connect to a Service Bus namesapce.- Returns:
- the connection string to connect to a Service Bus namesapce.
-
setConnectionString
Set the connection string to connect to a Service Bus namesapce.- Parameters:
connectionString- the connection string to connect to a Service Bus namesapce.
-
getTopicClientId
Get the Service Bus topic client ID.- Returns:
- the Service Bus topic client ID.
-
setTopicClientId
Set the Service Bus topic client ID.- Parameters:
topicClientId- the Service Bus topic client ID.
-
getPricingTier
Get the pricing tier for a Service Bus namespace.- Returns:
- the pricing tier for a Service Bus namespace.
-
setPricingTier
Set the pricing tier for a Service Bus namespace.- Parameters:
pricingTier- the pricing tier for a Service Bus namespace.
-
getIdleTimeout
Get the connection idle timeout duration.- Returns:
- the connection idle timeout duration.
-
setIdleTimeout
Set the connection idle timeout duration.- Parameters:
idleTimeout- the connection idle timeout duration.
-
getListener
Get the listener related properties.- Returns:
- the listener related properties.
-
getPrefetchPolicy
Get the prefetch policy related properties.- Returns:
- the prefetch policy related properties.
-
afterPropertiesSet
Validate spring.jms.servicebus related properties.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
IllegalArgumentException- If connectionString is empty.Exception
-