Class AmqpRabbitProperties

java.lang.Object
org.springframework.boot.amqp.rabbitmq.autoconfigure.AmqpRabbitProperties

@ConfigurationProperties("spring.amqp.rabbitmq") public class AmqpRabbitProperties extends Object
Configuration properties for Rabbit AMQP.
Since:
4.2.0
Author:
EddĂș MelĂ©ndez
  • Constructor Details

    • AmqpRabbitProperties

      public AmqpRabbitProperties()
  • Method Details

    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getPort

      public @Nullable Integer getPort()
    • determinePort

      public int determinePort()
      Returns the port from the address, or the configured port if no address have been set.
      Returns:
      the port
      See Also:
    • setPort

      public void setPort(@Nullable Integer port)
    • getAddress

      public @Nullable String getAddress()
    • determineAddress

      public String determineAddress()
      Returns the configured address (host:port) created from the configured host and port.
      Returns:
      the address
    • setAddress

      public void setAddress(String address)
    • getUsername

      public String getUsername()
    • determineUsername

      public String determineUsername()
      If address has been set and has a username it is returned. Otherwise returns the result of calling getUsername().
      Returns:
      the username
      See Also:
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • determinePassword

      public @Nullable String determinePassword()
      If address has been set and has a password it is returned. Otherwise returns the result of calling getPassword().
      Returns:
      the password or null
      See Also:
    • setPassword

      public void setPassword(String password)
    • getVirtualHost

      public @Nullable String getVirtualHost()
    • determineVirtualHost

      public @Nullable String determineVirtualHost()
      If address has been set and has a virtual host it is returned. Otherwise returns the result of calling getVirtualHost().
      Returns:
      the virtual host or null
      See Also:
    • setVirtualHost

      public void setVirtualHost(@Nullable String virtualHost)
    • getSsl

      public AmqpRabbitProperties.Ssl getSsl()
    • getListener

      public AmqpRabbitProperties.Listener getListener()
    • getTemplate

      public AmqpRabbitProperties.Template getTemplate()