public class SdkConnection extends Object implements com.rabbitmq.client.Connection
Connection which automatically closes the connection when there
 are no more opened channels channels| Constructor and Description | 
|---|
SdkConnection(com.rabbitmq.client.Connection actualConnection)
Initializes a new instance of the  
SdkConnection class | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
abort()  | 
void | 
abort(int i)  | 
void | 
abort(int i,
     String s)  | 
void | 
abort(int i,
     String s,
     int i2)  | 
com.rabbitmq.client.BlockedListener | 
addBlockedListener(com.rabbitmq.client.BlockedCallback blockedCallback,
                  com.rabbitmq.client.UnblockedCallback unblockedCallback)  | 
void | 
addBlockedListener(com.rabbitmq.client.BlockedListener blockedListener)  | 
void | 
addShutdownListener(com.rabbitmq.client.ShutdownListener shutdownListener)  | 
void | 
clearBlockedListeners()  | 
void | 
close()  | 
void | 
close(int i)  | 
void | 
close(int i,
     String s)  | 
void | 
close(int i,
     String s,
     int i2)  | 
com.rabbitmq.client.Channel | 
createChannel()  | 
com.rabbitmq.client.Channel | 
createChannel(int i)  | 
InetAddress | 
getAddress()  | 
int | 
getChannelMax()  | 
Map<String,Object> | 
getClientProperties()  | 
String | 
getClientProvidedName()  | 
com.rabbitmq.client.ShutdownSignalException | 
getCloseReason()  | 
com.rabbitmq.client.ExceptionHandler | 
getExceptionHandler()  | 
int | 
getFrameMax()  | 
int | 
getHeartbeat()  | 
String | 
getId()  | 
int | 
getPort()  | 
Map<String,Object> | 
getServerProperties()  | 
boolean | 
isOpen()  | 
void | 
notifyListeners()  | 
boolean | 
removeBlockedListener(com.rabbitmq.client.BlockedListener blockedListener)  | 
void | 
removeShutdownListener(com.rabbitmq.client.ShutdownListener shutdownListener)  | 
void | 
setId(String s)  | 
public SdkConnection(com.rabbitmq.client.Connection actualConnection)
SdkConnection classactualConnection - A Connection instance wrapped with current
        SdkConnection instancepublic InetAddress getAddress()
getAddress in interface com.rabbitmq.client.Connectionpublic int getPort()
getPort in interface com.rabbitmq.client.Connectionpublic int getChannelMax()
getChannelMax in interface com.rabbitmq.client.Connectionpublic int getFrameMax()
getFrameMax in interface com.rabbitmq.client.Connectionpublic int getHeartbeat()
getHeartbeat in interface com.rabbitmq.client.Connectionpublic Map<String,Object> getClientProperties()
getClientProperties in interface com.rabbitmq.client.Connectionpublic String getClientProvidedName()
getClientProvidedName in interface com.rabbitmq.client.Connectionpublic Map<String,Object> getServerProperties()
getServerProperties in interface com.rabbitmq.client.Connectionpublic com.rabbitmq.client.Channel createChannel()
                                          throws IOException
createChannel in interface com.rabbitmq.client.ConnectionIOExceptionpublic com.rabbitmq.client.Channel createChannel(int i)
                                          throws IOException
createChannel in interface com.rabbitmq.client.ConnectionIOExceptionpublic void close()
           throws IOException
close in interface com.rabbitmq.client.Connectionclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic void close(int i,
                  String s)
           throws IOException
close in interface com.rabbitmq.client.ConnectionIOExceptionpublic void close(int i)
           throws IOException
close in interface com.rabbitmq.client.ConnectionIOExceptionpublic void close(int i,
                  String s,
                  int i2)
           throws IOException
close in interface com.rabbitmq.client.ConnectionIOExceptionpublic void abort()
abort in interface com.rabbitmq.client.Connectionpublic void abort(int i,
                  String s)
abort in interface com.rabbitmq.client.Connectionpublic void abort(int i)
abort in interface com.rabbitmq.client.Connectionpublic void abort(int i,
                  String s,
                  int i2)
abort in interface com.rabbitmq.client.Connectionpublic void addBlockedListener(com.rabbitmq.client.BlockedListener blockedListener)
addBlockedListener in interface com.rabbitmq.client.Connectionpublic com.rabbitmq.client.BlockedListener addBlockedListener(com.rabbitmq.client.BlockedCallback blockedCallback,
                                                              com.rabbitmq.client.UnblockedCallback unblockedCallback)
addBlockedListener in interface com.rabbitmq.client.Connectionpublic boolean removeBlockedListener(com.rabbitmq.client.BlockedListener blockedListener)
removeBlockedListener in interface com.rabbitmq.client.Connectionpublic void clearBlockedListeners()
clearBlockedListeners in interface com.rabbitmq.client.Connectionpublic com.rabbitmq.client.ExceptionHandler getExceptionHandler()
getExceptionHandler in interface com.rabbitmq.client.Connectionpublic String getId()
getId in interface com.rabbitmq.client.Connectionpublic void setId(String s)
setId in interface com.rabbitmq.client.Connectionpublic void addShutdownListener(com.rabbitmq.client.ShutdownListener shutdownListener)
addShutdownListener in interface com.rabbitmq.client.ShutdownNotifierpublic void removeShutdownListener(com.rabbitmq.client.ShutdownListener shutdownListener)
removeShutdownListener in interface com.rabbitmq.client.ShutdownNotifierpublic com.rabbitmq.client.ShutdownSignalException getCloseReason()
getCloseReason in interface com.rabbitmq.client.ShutdownNotifierpublic void notifyListeners()
notifyListeners in interface com.rabbitmq.client.ShutdownNotifierpublic boolean isOpen()
isOpen in interface com.rabbitmq.client.ShutdownNotifierCopyright © 2016–2025. All rights reserved.