Package com.rabbitmq.client.amqp
Interface ConnectionBuilder
- All Superinterfaces:
ConnectionSettings<ConnectionBuilder>
Builder for
Connection
instances.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Configuration for recovery.Nested classes/interfaces inherited from interface com.rabbitmq.client.amqp.ConnectionSettings
ConnectionSettings.Affinity<T>, ConnectionSettings.AffinityContext, ConnectionSettings.AffinityStrategy, ConnectionSettings.TlsSettings<T>
-
Field Summary
Fields inherited from interface com.rabbitmq.client.amqp.ConnectionSettings
SASL_MECHANISM_ANONYMOUS, SASL_MECHANISM_EXTERNAL, SASL_MECHANISM_PLAIN
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create the connection instance.listeners
(Resource.StateListener... listeners) AddResource.StateListener
s to the connection.recovery()
Configuration for recovery.Methods inherited from interface com.rabbitmq.client.amqp.ConnectionSettings
addressSelector, affinity, credentialsProvider, host, idleTimeout, oauth2, password, port, saslMechanism, tls, uri, uris, username, virtualHost
-
Method Details
-
recovery
ConnectionBuilder.RecoveryConfiguration recovery()Configuration for recovery.- Returns:
- recovery configuration
-
listeners
AddResource.StateListener
s to the connection.- Parameters:
listeners
- listeners- Returns:
- this builder instance
-
build
Connection build()Create the connection instance.- Returns:
- the configured connection
-