private class CachingConnectionFactory.ChannelCachingConnectionProxy extends java.lang.Object implements Connection, ConnectionProxy
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicBoolean |
closeNotified |
private Connection |
target |
| Constructor and Description |
|---|
ChannelCachingConnectionProxy(Connection target) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this connection and all its channels
with the
AMQP.REPLY_SUCCESS close code
and message 'OK'. |
private com.rabbitmq.client.Channel |
createBareChannel(boolean transactional) |
com.rabbitmq.client.Channel |
createChannel(boolean transactional)
Create a new channel, using an internally allocated channel number.
|
void |
destroy() |
boolean |
equals(java.lang.Object obj) |
Connection |
getTargetConnection()
Return the target Channel of this proxy.
|
int |
hashCode() |
boolean |
isOpen()
Flag to indicate the status of the connection.
|
private void |
notifyCloseIfNecessary() |
java.lang.String |
toString() |
private volatile Connection target
private final java.util.concurrent.atomic.AtomicBoolean closeNotified
public ChannelCachingConnectionProxy(Connection target)
private com.rabbitmq.client.Channel createBareChannel(boolean transactional)
public com.rabbitmq.client.Channel createChannel(boolean transactional)
ConnectioncreateChannel in interface Connectiontransactional - true if the channel should support transactionspublic void close()
ConnectionAMQP.REPLY_SUCCESS close code
and message 'OK'.
Waits for all the close operations to complete.close in interface Connectionpublic void destroy()
private void notifyCloseIfNecessary()
public boolean isOpen()
ConnectionisOpen in interface Connectionpublic Connection getTargetConnection()
ConnectionProxyThis will typically be the native provider Connection
getTargetConnection in interface ConnectionProxynull)public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object