接口 RabbitConnectionDetails

所有超级接口:
ConnectionDetails

public interface RabbitConnectionDetails extends ConnectionDetails
Details required to establish a connection to a RabbitMQ service.
从以下版本开始:
3.1.0
作者:
Moritz Halbritter, Andy Wilkinson, Phillip Webb
  • 方法详细资料

    • getUsername

      default String getUsername()
      Login user to authenticate to the broker.
      返回:
      the login user to authenticate to the broker or null
    • getPassword

      default String getPassword()
      Login to authenticate against the broker.
      返回:
      the login to authenticate against the broker or null
    • getVirtualHost

      default String getVirtualHost()
      Virtual host to use when connecting to the broker.
      返回:
      the virtual host to use when connecting to the broker or null
    • getAddresses

      List of addresses to which the client should connect. Must return at least one address.
      返回:
      the list of addresses to which the client should connect
    • getFirstAddress

      default RabbitConnectionDetails.Address getFirstAddress()
      Returns the first address.
      返回:
      the first address
      抛出:
      IllegalStateException - if the address list is empty