Uses of Interface
com.rabbitmq.client.Connection
Packages that use Connection
Package
Description
The client API proper: classes and interfaces representing the AMQP
connections, channels, and wire-protocol framing descriptors.
Implementations of interfaces specified in the client API, and their supporting classes.
Implementation of connection and topology recovery.
-
Uses of Connection in com.rabbitmq.client
Subinterfaces of Connection in com.rabbitmq.clientModifier and TypeInterfaceDescriptioninterfaceConvenient interface when working against auto-recovery connections.Methods in com.rabbitmq.client that return ConnectionModifier and TypeMethodDescriptionChannel.getConnection()Retrieve the connection which carries this channel.ConnectionFactory.newConnection()Create a new broker connection.ConnectionFactory.newConnection(Address[] addrs) Create a new broker connection, picking the first available address from the list.ConnectionFactory.newConnection(Address[] addrs, String clientProvidedName) Create a new broker connection with a client-provided name, picking the first available address from the list.ConnectionFactory.newConnection(AddressResolver addressResolver) Create a new broker connection, picking the first available address from the list provided by theAddressResolver.ConnectionFactory.newConnection(String connectionName) Create a new broker connection.ConnectionFactory.newConnection(ExecutorService executor) Create a new broker connection.ConnectionFactory.newConnection(ExecutorService executor, Address[] addrs) Create a new broker connection, picking the first available address from the list.ConnectionFactory.newConnection(ExecutorService executor, Address[] addrs, String clientProvidedName) Create a new broker connection with a client-provided name, picking the first available address from the list.ConnectionFactory.newConnection(ExecutorService executor, AddressResolver addressResolver) Create a new broker connection, picking the first available address from the list provided by theAddressResolver.ConnectionFactory.newConnection(ExecutorService executor, AddressResolver addressResolver, String clientProvidedName) Create a new broker connection with a client-provided name, picking the first available address from the list provided by theAddressResolver.ConnectionFactory.newConnection(ExecutorService executor, String connectionName) Create a new broker connection.ConnectionFactory.newConnection(ExecutorService executor, List<Address> addrs) Create a new broker connection, picking the first available address from the list.ConnectionFactory.newConnection(ExecutorService executor, List<Address> addrs, String clientProvidedName) Create a new broker connection with a client-provided name, picking the first available address from the list.ConnectionFactory.newConnection(List<Address> addrs) Create a new broker connection, picking the first available address from the list.ConnectionFactory.newConnection(List<Address> addrs, String clientProvidedName) Create a new broker connection with a client-provided name, picking the first available address from the list.Methods in com.rabbitmq.client with parameters of type ConnectionModifier and TypeMethodDescriptionvoidMetricsCollector.closeConnection(Connection connection) voidNoOpMetricsCollector.closeConnection(Connection connection) voidExceptionHandler.handleBlockedListenerException(Connection connection, Throwable exception) Perform any required exception processing for the situation when the driver thread for the connection has called a BlockedListener's method, and that method has thrown an exception.voidExceptionHandler.handleConnectionRecoveryException(Connection conn, Throwable exception) Perform any required exception processing for the situation when the driver thread for the connection has an exception during connection recovery that it can't otherwise deal with.voidExceptionHandler.handleTopologyRecoveryException(Connection conn, Channel ch, TopologyRecoveryException exception) Perform any required exception processing for the situation when the driver thread for the connection has an exception during topology (exchanges, queues, bindings, consumers) recovery that it can't otherwise deal with.voidExceptionHandler.handleUnexpectedConnectionDriverException(Connection conn, Throwable exception) Perform any required exception processing for the situation when the driver thread for the connection has an exception signalled to it that it can't otherwise deal with.voidMetricsCollector.newConnection(Connection connection) voidNoOpMetricsCollector.newConnection(Connection connection) -
Uses of Connection in com.rabbitmq.client.impl
Classes in com.rabbitmq.client.impl that implement ConnectionModifier and TypeClassDescriptionclassConcrete class representing and managing an AMQP connection to a broker.Methods in com.rabbitmq.client.impl with parameters of type ConnectionModifier and TypeMethodDescriptionvoidAbstractMetricsCollector.closeConnection(Connection connection) protected abstract voidAbstractMetricsCollector.decrementConnectionCount(Connection connection) Decrements connection count.protected voidMicrometerMetricsCollector.decrementConnectionCount(Connection connection) protected voidOpenTelemetryMetricsCollector.decrementConnectionCount(Connection connection) protected voidStandardMetricsCollector.decrementConnectionCount(Connection connection) voidErrorOnWriteListener.handle(Connection connection, IOException exception) Called when writing to the socket failedvoidForgivingExceptionHandler.handleBlockedListenerException(Connection connection, Throwable exception) voidStrictExceptionHandler.handleBlockedListenerException(Connection connection, Throwable exception) protected voidForgivingExceptionHandler.handleConnectionKiller(Connection connection, Throwable exception, String what) voidForgivingExceptionHandler.handleConnectionRecoveryException(Connection conn, Throwable exception) voidForgivingExceptionHandler.handleTopologyRecoveryException(Connection conn, Channel ch, TopologyRecoveryException exception) voidForgivingExceptionHandler.handleUnexpectedConnectionDriverException(Connection conn, Throwable exception) protected abstract voidAbstractMetricsCollector.incrementConnectionCount(Connection connection) Increments connection count.protected voidMicrometerMetricsCollector.incrementConnectionCount(Connection connection) protected voidOpenTelemetryMetricsCollector.incrementConnectionCount(Connection connection) protected voidStandardMetricsCollector.incrementConnectionCount(Connection connection) voidAbstractMetricsCollector.newConnection(Connection connection) -
Uses of Connection in com.rabbitmq.client.impl.recovery
Classes in com.rabbitmq.client.impl.recovery that implement ConnectionModifier and TypeClassDescriptionclassConnection implementation that performs automatic recovery when connection shutdown is not initiated by the application (e.g. due to an I/O exception).classAMQConnectionmodification that usesRecoveryAwareChannelNMethods in com.rabbitmq.client.impl.recovery that return ConnectionMethods in com.rabbitmq.client.impl.recovery with parameters of type ConnectionModifier and TypeMethodDescriptionvoidAutorecoveringChannel.automaticallyRecover(AutorecoveringConnection connection, Connection connDelegate)