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
ConfigurationPropertiesfor configuring Azure Service Bus JMS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAzureServiceBusJmsProperties.ListenerProperties to configureJmsListenerforAbstractJmsListenerContainerFactory.static classAzureServiceBusJmsProperties.PrefetchPolicyProperties to configureJmsDefaultPrefetchPolicyforJmsConnectionFactory.
-
Constructor Summary
Constructors Constructor Description AzureServiceBusJmsProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Validate spring.jms.servicebus related properties.StringgetConnectionString()Get the connection string to connect to a Service Bus namesapce.DurationgetIdleTimeout()Get the connection idle timeout duration.AzureServiceBusJmsProperties.ListenergetListener()Get the listener related properties.StringgetPassword()Get the login password of the AMQP broker.org.springframework.boot.autoconfigure.jms.JmsPoolConnectionFactoryPropertiesgetPool()The properties for a pooled connection factory.AzureServiceBusJmsProperties.PrefetchPolicygetPrefetchPolicy()Get the prefetch policy related properties.StringgetPricingTier()Get the pricing tier for a Service Bus namespace.StringgetRemoteUrl()Get the URL of the AMQP broker.StringgetTopicClientId()Get the Service Bus topic client ID.StringgetUsername()Get the login user of the AMQP broker.voidsetConnectionString(String connectionString)Set the connection string to connect to a Service Bus namesapce.voidsetIdleTimeout(Duration idleTimeout)Set the connection idle timeout duration.voidsetPassword(String password)Set the login password of the AMQP broker.voidsetPricingTier(String pricingTier)Set the pricing tier for a Service Bus namespace.voidsetRemoteUrl(String remoteUrl)Set the URL of the AMQP broker.voidsetTopicClientId(String topicClientId)Set the Service Bus topic client ID.voidsetUsername(String username)Set the login user of the AMQP broker.
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRemoteUrl
public String getRemoteUrl()
Get the URL of the AMQP broker.- Returns:
- the URL of the AMQP broker.
-
setRemoteUrl
public void setRemoteUrl(String remoteUrl)
Set the URL of the AMQP broker.- Parameters:
remoteUrl- the URL of the AMQP broker.
-
getUsername
public String getUsername()
Get the login user of the AMQP broker.- Returns:
- the login user of the AMQP broker.
-
setUsername
public void setUsername(String username)
Set the login user of the AMQP broker.- Parameters:
username- the login user of the AMQP broker.
-
getPassword
public String getPassword()
Get the login password of the AMQP broker.- Returns:
- the login password of the AMQP broker.
-
setPassword
public void setPassword(String password)
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
public String getConnectionString()
Get the connection string to connect to a Service Bus namesapce.- Returns:
- the connection string to connect to a Service Bus namesapce.
-
setConnectionString
public void setConnectionString(String connectionString)
Set the connection string to connect to a Service Bus namesapce.- Parameters:
connectionString- the connection string to connect to a Service Bus namesapce.
-
getTopicClientId
public String getTopicClientId()
Get the Service Bus topic client ID.- Returns:
- the Service Bus topic client ID.
-
setTopicClientId
public void setTopicClientId(String topicClientId)
Set the Service Bus topic client ID.- Parameters:
topicClientId- the Service Bus topic client ID.
-
getPricingTier
public String getPricingTier()
Get the pricing tier for a Service Bus namespace.- Returns:
- the pricing tier for a Service Bus namespace.
-
setPricingTier
public void setPricingTier(String pricingTier)
Set the pricing tier for a Service Bus namespace.- Parameters:
pricingTier- the pricing tier for a Service Bus namespace.
-
getIdleTimeout
public Duration getIdleTimeout()
Get the connection idle timeout duration.- Returns:
- the connection idle timeout duration.
-
setIdleTimeout
public void setIdleTimeout(Duration idleTimeout)
Set the connection idle timeout duration.- Parameters:
idleTimeout- the connection idle timeout duration.
-
getListener
public AzureServiceBusJmsProperties.Listener getListener()
Get the listener related properties.- Returns:
- the listener related properties.
-
getPrefetchPolicy
public AzureServiceBusJmsProperties.PrefetchPolicy getPrefetchPolicy()
Get the prefetch policy related properties.- Returns:
- the prefetch policy related properties.
-
afterPropertiesSet
public void afterPropertiesSet() throws ExceptionValidate spring.jms.servicebus related properties.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
IllegalArgumentException- If connectionString is empty.Exception
-
-