Uses of Interface
org.apache.qpid.protonj2.client.Connection
Packages that use Connection
-
Uses of Connection in org.apache.qpid.protonj2.client
Methods in org.apache.qpid.protonj2.client that return ConnectionModifier 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()
Methods in org.apache.qpid.protonj2.client that return types with arguments of type ConnectionModifier 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()
Method parameters in org.apache.qpid.protonj2.client with type arguments of type ConnectionModifier 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
Classes in org.apache.qpid.protonj2.client.impl that implement ConnectionModifier and TypeClassDescriptionfinal class
AConnection
implementation that uses the Proton engine for AMQP protocol support.Methods in org.apache.qpid.protonj2.client.impl that return ConnectionModifier and TypeMethodDescriptionClientInstance.connect
(String host, int port, ConnectionOptions options) ClientInstance.connect
(String host, ConnectionOptions options) Methods in org.apache.qpid.protonj2.client.impl that return types with arguments of type ConnectionModifier and TypeMethodDescriptionClientConnection.closeAsync()
ClientConnection.closeAsync
(ErrorCondition error) ClientConnection.openFuture()