接口 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.AddressReturns the first address.default StringLogin to authenticate against the broker.default SslBundleSSL bundle to use.default StringLogin user to authenticate to the broker.default StringVirtual 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
-
getSslBundle
SSL bundle to use.- 返回:
- the SSL bundle to use
- 从以下版本开始:
- 3.5.0
-