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.Get the login password of the AMQP broker.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 URL of the AMQP broker.Get the Service Bus topic client ID.Get the login user of the AMQP broker.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
setPassword
(String password) Set the login password of the AMQP broker.void
setPricingTier
(String pricingTier) Set the pricing tier for a Service Bus namespace.void
setRemoteUrl
(String remoteUrl) Set the URL of the AMQP broker.void
setTopicClientId
(String topicClientId) Set the Service Bus topic client ID.void
setUsername
(String username) Set the login user of the AMQP broker.
-
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.
-
getRemoteUrl
Get the URL of the AMQP broker.- Returns:
- the URL of the AMQP broker.
-
setRemoteUrl
Set the URL of the AMQP broker.- Parameters:
remoteUrl
- the URL of the AMQP broker.
-
getUsername
Get the login user of the AMQP broker.- Returns:
- the login user of the AMQP broker.
-
setUsername
Set the login user of the AMQP broker.- Parameters:
username
- the login user of the AMQP broker.
-
getPassword
Get the login password of the AMQP broker.- Returns:
- the login password of the AMQP broker.
-
setPassword
Set the login password of the AMQP broker.- Parameters:
password
- the login password of the AMQP broker.
-
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
-