接口 RabbitConnectionDetails
- 所有超级接口:
ConnectionDetails
Details required to establish a connection to a RabbitMQ service.
- 从以下版本开始:
- 3.1.0
- 作者:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明List of addresses to which the client should connect.default RabbitConnectionDetails.Address
Returns the first address.default String
Login to authenticate against the broker.default String
Login user to authenticate to the broker.default String
Virtual host to use when connecting to the broker.
-
方法详细资料
-
getUsername
Login user to authenticate to the broker.- 返回:
- the login user to authenticate to the broker or
null
-
getPassword
Login to authenticate against the broker.- 返回:
- the login to authenticate against the broker or
null
-
getVirtualHost
Virtual host to use when connecting to the broker.- 返回:
- the virtual host to use when connecting to the broker or
null
-
getAddresses
List<RabbitConnectionDetails.Address> 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
Returns the first address.- 返回:
- the first address
- 抛出:
IllegalStateException
- if the address list is empty
-