Uses of Interface
org.apache.qpid.protonj2.client.Connection
-
Packages that use Connection Package Description org.apache.qpid.protonj2.client org.apache.qpid.protonj2.client.impl -
-
Uses of Connection in org.apache.qpid.protonj2.client
Methods in org.apache.qpid.protonj2.client that return Connection Modifier and Type Method Description ConnectionClient. connect(java.lang.String host)Connect to the specified host, using the default port, without credentials and with all connection options set to their defaults.ConnectionClient. connect(java.lang.String host, int port)Connect to the specified host and port, without credentials and with all connection options set to their defaults.ConnectionClient. connect(java.lang.String host, int port, ConnectionOptions options)Connect to the specified host and port, with given connection options.ConnectionClient. connect(java.lang.String host, ConnectionOptions options)Connect to the specified host, using the default port, without credentials and with all connection options set to their defaults.ConnectionReceiver. connection()ConnectionSender. connection()ConnectionSession. connection()Methods in org.apache.qpid.protonj2.client that return types with arguments of type Connection Modifier and Type Method Description java.util.concurrent.Future<Connection>Connection. closeAsync()Requests a close of theConnectionat the remote and returns aFuturethat will be completed once the Connection has been fully closed.java.util.concurrent.Future<Connection>Connection. closeAsync(ErrorCondition error)Requests a close of theConnectionat the remote and returns aFuturethat will be completed once the Connection has been fully closed.java.util.function.BiConsumer<Connection,ConnectionEvent>ConnectionOptions. connectedHandler()java.util.function.BiConsumer<Connection,DisconnectionEvent>ConnectionOptions. disconnectedHandler()java.util.function.BiConsumer<Connection,DisconnectionEvent>ConnectionOptions. interruptedHandler()java.util.concurrent.Future<Connection>Connection. openFuture()When aConnectionis 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.java.util.function.BiConsumer<Connection,ConnectionEvent>ConnectionOptions. reconnectedHandler()Method parameters in org.apache.qpid.protonj2.client with type arguments of type Connection Modifier and Type Method Description ConnectionOptionsConnectionOptions. connectedHandler(java.util.function.BiConsumer<Connection,ConnectionEvent> connectedHandler)Configures a handler that will be notified when aConnectionhas established.ConnectionOptionsConnectionOptions. disconnectedHandler(java.util.function.BiConsumer<Connection,DisconnectionEvent> disconnectedHandler)Configures a handler that will be notified when the connection has failed and cannot be recovered should reconnect be enabled.ConnectionOptionsConnectionOptions. interruptedHandler(java.util.function.BiConsumer<Connection,DisconnectionEvent> interruptedHandler)Configures a handler that will be notified when the currentConnectionexperiences an interruption.ConnectionOptionsConnectionOptions. reconnectedHandler(java.util.function.BiConsumer<Connection,ConnectionEvent> reconnectedHandler)Configures a handler that will be notified when aConnectionthat 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 Connection Modifier and Type Class Description classClientConnectionAConnectionimplementation that uses the Proton engine for AMQP protocol support.Methods in org.apache.qpid.protonj2.client.impl that return Connection Modifier and Type Method Description ConnectionClientInstance. connect(java.lang.String host)ConnectionClientInstance. connect(java.lang.String host, int port)ConnectionClientInstance. connect(java.lang.String host, int port, ConnectionOptions options)ConnectionClientInstance. connect(java.lang.String host, ConnectionOptions options)Methods in org.apache.qpid.protonj2.client.impl that return types with arguments of type Connection Modifier and Type Method Description java.util.concurrent.Future<Connection>ClientConnection. closeAsync()java.util.concurrent.Future<Connection>ClientConnection. closeAsync(ErrorCondition error)java.util.concurrent.Future<Connection>ClientConnection. openFuture()
-