public final class RMQManager extends Object implements RMQConnectionListener
修飾子とタイプ | メソッドと説明 |
---|---|
com.rabbitmq.client.Channel |
getChannel()
Gets channel.
|
boolean |
getChannelStatus(String queueName)
Gets status of channel for specified queue.
|
static RMQManager |
getInstance()
Gets instance.
|
PublishRMQChannel |
getPublishChannel()
Gets instance of
PublishRMQChannel . |
boolean |
isOpen()
Gets whether connection is established or not.
|
void |
onCloseCompleted(RMQConnection rmqConnection)
Calls when closing process for connection is completed.
|
void |
onOpen(RMQConnection rmqConnection)
Calls when connection is opend.
|
void |
shutdown()
Shutdown connection.
|
void |
shutdownWithWait()
Shutdown connection then wait to close connection.
|
void |
update()
Updates RabbitMQ connection.
|
public static RMQManager getInstance()
public void update()
public void shutdown()
public void shutdownWithWait() throws InterruptedException
InterruptedException
- throw if wait process is interrupted.public boolean isOpen()
public boolean getChannelStatus(String queueName)
queueName
- the queue name.public com.rabbitmq.client.Channel getChannel()
public PublishRMQChannel getPublishChannel()
PublishRMQChannel
.public void onOpen(RMQConnection rmqConnection)
onOpen
インタフェース内 RMQConnectionListener
rmqConnection
- the connection.public void onCloseCompleted(RMQConnection rmqConnection)
onCloseCompleted
インタフェース内 RMQConnectionListener
rmqConnection
- the connection.Copyright © 2016–2018. All rights reserved.