Uses of Interface
org.apache.qpid.protonj2.client.Connection
-
Uses of Connection in org.apache.qpid.protonj2.client
Modifier and TypeMethodDescriptionConnect to the specified host, using the default port, without credentials and with all connection options set to their defaults.Connect to the specified host and port, without credentials and with all connection options set to their defaults.Client.connect
(String host, int port, ConnectionOptions options) Connect to the specified host and port, with given connection options.Client.connect
(String host, ConnectionOptions options) Connect to the specified host, using the default port, without credentials and with all connection options set to their defaults.Link.connection()
Session.connection()
Modifier and TypeMethodDescriptionConnection.closeAsync()
Requests a close of theConnection
at the remote and returns aFuture
that will be completed once the Connection has been fully closed.Connection.closeAsync
(ErrorCondition error) Requests a close of theConnection
at the remote and returns aFuture
that will be completed once the Connection has been fully closed.ConnectionOptions.connectedHandler()
ConnectionOptions.disconnectedHandler()
ConnectionOptions.interruptedHandler()
Connection.openFuture()
When aConnection
is created it may not be opened on the remote peer, the future returned from this method allows the caller to await the completion of the Connection open by the remote before proceeding on to other messaging operations.ConnectionOptions.reconnectedHandler()
Modifier and TypeMethodDescriptionConnectionOptions.connectedHandler
(BiConsumer<Connection, ConnectionEvent> connectedHandler) Configures a handler that will be notified when aConnection
has established.ConnectionOptions.disconnectedHandler
(BiConsumer<Connection, DisconnectionEvent> disconnectedHandler) Configures a handler that will be notified when the connection has failed and cannot be recovered should reconnect be enabled.ConnectionOptions.interruptedHandler
(BiConsumer<Connection, DisconnectionEvent> interruptedHandler) Configures a handler that will be notified when the currentConnection
experiences an interruption.ConnectionOptions.reconnectedHandler
(BiConsumer<Connection, ConnectionEvent> reconnectedHandler) Configures a handler that will be notified when aConnection
that has previously experienced and interruption has been reconnected to a remote based on the reconnection configuration. -
Uses of Connection in org.apache.qpid.protonj2.client.impl
Modifier and TypeClassDescriptionfinal class
AConnection
implementation that uses the Proton engine for AMQP protocol support.Modifier and TypeMethodDescriptionClientInstance.connect
(String host, int port, ConnectionOptions options) ClientInstance.connect
(String host, ConnectionOptions options) Modifier and TypeMethodDescriptionClientConnection.closeAsync()
ClientConnection.closeAsync
(ErrorCondition error) ClientConnection.openFuture()