public class SdkConnection extends Object implements com.rabbitmq.client.Connection
Connection
which automatically closes the connection when there
are no more opened channels channelsConstructor 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.Connection
public int getPort()
getPort
in interface com.rabbitmq.client.Connection
public int getChannelMax()
getChannelMax
in interface com.rabbitmq.client.Connection
public int getFrameMax()
getFrameMax
in interface com.rabbitmq.client.Connection
public int getHeartbeat()
getHeartbeat
in interface com.rabbitmq.client.Connection
public Map<String,Object> getClientProperties()
getClientProperties
in interface com.rabbitmq.client.Connection
public String getClientProvidedName()
getClientProvidedName
in interface com.rabbitmq.client.Connection
public Map<String,Object> getServerProperties()
getServerProperties
in interface com.rabbitmq.client.Connection
public com.rabbitmq.client.Channel createChannel() throws IOException
createChannel
in interface com.rabbitmq.client.Connection
IOException
public com.rabbitmq.client.Channel createChannel(int i) throws IOException
createChannel
in interface com.rabbitmq.client.Connection
IOException
public void close() throws IOException
close
in interface com.rabbitmq.client.Connection
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void close(int i, String s) throws IOException
close
in interface com.rabbitmq.client.Connection
IOException
public void close(int i) throws IOException
close
in interface com.rabbitmq.client.Connection
IOException
public void close(int i, String s, int i2) throws IOException
close
in interface com.rabbitmq.client.Connection
IOException
public void abort()
abort
in interface com.rabbitmq.client.Connection
public void abort(int i, String s)
abort
in interface com.rabbitmq.client.Connection
public void abort(int i)
abort
in interface com.rabbitmq.client.Connection
public void abort(int i, String s, int i2)
abort
in interface com.rabbitmq.client.Connection
public void addBlockedListener(com.rabbitmq.client.BlockedListener blockedListener)
addBlockedListener
in interface com.rabbitmq.client.Connection
public com.rabbitmq.client.BlockedListener addBlockedListener(com.rabbitmq.client.BlockedCallback blockedCallback, com.rabbitmq.client.UnblockedCallback unblockedCallback)
addBlockedListener
in interface com.rabbitmq.client.Connection
public boolean removeBlockedListener(com.rabbitmq.client.BlockedListener blockedListener)
removeBlockedListener
in interface com.rabbitmq.client.Connection
public void clearBlockedListeners()
clearBlockedListeners
in interface com.rabbitmq.client.Connection
public com.rabbitmq.client.ExceptionHandler getExceptionHandler()
getExceptionHandler
in interface com.rabbitmq.client.Connection
public String getId()
getId
in interface com.rabbitmq.client.Connection
public void setId(String s)
setId
in interface com.rabbitmq.client.Connection
public void addShutdownListener(com.rabbitmq.client.ShutdownListener shutdownListener)
addShutdownListener
in interface com.rabbitmq.client.ShutdownNotifier
public void removeShutdownListener(com.rabbitmq.client.ShutdownListener shutdownListener)
removeShutdownListener
in interface com.rabbitmq.client.ShutdownNotifier
public com.rabbitmq.client.ShutdownSignalException getCloseReason()
getCloseReason
in interface com.rabbitmq.client.ShutdownNotifier
public void notifyListeners()
notifyListeners
in interface com.rabbitmq.client.ShutdownNotifier
public boolean isOpen()
isOpen
in interface com.rabbitmq.client.ShutdownNotifier
Copyright © 2016–2025. All rights reserved.