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
Modifier and TypeClassDescriptionstatic class
Properties to configureJmsListener
forAbstractJmsListenerContainerFactory
.static class
Properties to configureJmsDefaultPrefetchPolicy
forJmsConnectionFactory
. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Validate 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.JmsPoolConnectionFactoryProperties
getPool()
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.boolean
Whether to enable Service Bus JMS autoconfiguration.void
setConnectionString
(String connectionString) Set the connection string to connect to a Service Bus namesapce.void
setEnabled
(boolean enabled) Set whether to enable Service Bus JMS autoconfiguation.void
setIdleTimeout
(Duration idleTimeout) Set the connection idle timeout duration.void
setPricingTier
(String pricingTier) Set the pricing tier for a Service Bus namespace.void
setTopicClientId
(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:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
IllegalArgumentException
- If connectionString is empty.Exception
-