public class ConnectionObj extends Object implements com.rabbitmq.client.ShutdownListener
| 构造器和说明 |
|---|
ConnectionObj() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
closeChannelAndConnection() |
com.rabbitmq.client.Channel |
getChannel() |
static ConnectionObj |
getInstance()
双重检查
|
void |
shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause) |
public static final ConnectionObj getInstance()
public void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
shutdownCompleted 在接口中 com.rabbitmq.client.ShutdownListenerpublic com.rabbitmq.client.Channel getChannel()
public static void closeChannelAndConnection()
Copyright © 2015. All rights reserved.