Interface RabbitConnectionDetails
- All Superinterfaces:
ConnectionDetails
Details required to establish a connection to a RabbitMQ service.
- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA RabbitMQ address. -
Method Summary
Modifier and TypeMethodDescriptionList 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.
-
Method Details
-
getUsername
Login user to authenticate to the broker.- Returns:
- the login user to authenticate to the broker or
null
-
getPassword
Login to authenticate against the broker.- Returns:
- the login to authenticate against the broker or
null
-
getVirtualHost
Virtual host to use when connecting to the broker.- Returns:
- 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.- Returns:
- the list of addresses to which the client should connect
-
getFirstAddress
Returns the first address.- Returns:
- the first address
- Throws:
IllegalStateException- if the address list is empty
-
getSslBundle
SSL bundle to use.- Returns:
- the SSL bundle to use
- Since:
- 3.5.0
-