public class IdempotentClosedConnection extends Object implements Connection
Connection that ensure closing is idempotent.
It is used internally to share the same AMQP connection between
Sender and Receiver instances, e.g. to use exclusive
resources.| Constructor and Description |
|---|
IdempotentClosedConnection(Connection delegate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenChannel, openChannelpublic IdempotentClosedConnection(Connection delegate)
public Connection getDelegate()
public InetAddress getAddress()
getAddress in interface Connectionpublic int getPort()
getPort in interface Connectionpublic int getChannelMax()
getChannelMax in interface Connectionpublic int getFrameMax()
getFrameMax in interface Connectionpublic int getHeartbeat()
getHeartbeat in interface Connectionpublic Map<String,Object> getClientProperties()
getClientProperties in interface Connection@Nullable public String getClientProvidedName()
getClientProvidedName in interface Connectionpublic Map<String,Object> getServerProperties()
getServerProperties in interface Connection@Nullable public Channel createChannel() throws IOException
createChannel in interface ConnectionIOException@Nullable public Channel createChannel(int channelNumber) throws IOException
createChannel in interface ConnectionIOExceptionpublic void close()
throws IOException
close in interface Connectionclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic void close(int closeCode,
String closeMessage)
throws IOException
close in interface ConnectionIOExceptionpublic void close(int timeout)
throws IOException
close in interface ConnectionIOExceptionpublic void close(int closeCode,
String closeMessage,
int timeout)
throws IOException
close in interface ConnectionIOExceptionpublic void abort()
abort in interface Connectionpublic void abort(int closeCode,
String closeMessage)
abort in interface Connectionpublic void abort(int timeout)
abort in interface Connectionpublic void abort(int closeCode,
String closeMessage,
int timeout)
abort in interface Connectionpublic void addBlockedListener(BlockedListener listener)
addBlockedListener in interface Connectionpublic BlockedListener addBlockedListener(BlockedCallback blockedCallback, UnblockedCallback unblockedCallback)
addBlockedListener in interface Connectionpublic boolean removeBlockedListener(BlockedListener listener)
removeBlockedListener in interface Connectionpublic void clearBlockedListeners()
clearBlockedListeners in interface Connectionpublic ExceptionHandler getExceptionHandler()
getExceptionHandler in interface Connectionpublic String getId()
getId in interface Connectionpublic void setId(String id)
setId in interface Connectionpublic void addShutdownListener(ShutdownListener listener)
addShutdownListener in interface ShutdownNotifierpublic void removeShutdownListener(ShutdownListener listener)
removeShutdownListener in interface ShutdownNotifier@Nullable public ShutdownSignalException getCloseReason()
getCloseReason in interface ShutdownNotifierpublic void notifyListeners()
notifyListeners in interface ShutdownNotifierpublic boolean isOpen()
isOpen in interface ShutdownNotifier