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.
  • Field Details

  • 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

      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

      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 Exception
      Validate spring.jms.servicebus related properties.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      IllegalArgumentException - If connectionString is empty.
      Exception