public class RMQChannel extends Object implements RMQChannelNotifier, com.rabbitmq.client.ShutdownListener
| 修飾子とタイプ | クラスと説明 |
|---|---|
class |
RMQChannel.MessageConsumer
Handle class that consume message.
|
| コンストラクタと説明 |
|---|
RMQChannel(String queueName,
HashSet<String> appIds)
Creates instance with specified parameters.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addRMQChannelListener(RMQChannelListener rmqChannelListener)
Add
RMQChannelListener. |
void |
close()
Close channel.
|
void |
consume()
Starts consume.
|
HashSet<String> |
getAppIds()
Get hashset of app ids.
|
com.rabbitmq.client.Channel |
getChannel()
Gets instance of Channel, not RMQChannel.
|
String |
getQueueName()
Gets queue name.
|
boolean |
isConsumeStarted()
Gets whether consumer is already started or not.
|
boolean |
isOpenRMQChannel()
Gets whether channel is opened.
|
void |
notifyOnCloseCompleted()
Notify OnCloseCompleted event.
|
void |
notifyOnOpen()
Notify OnOpen event.
|
void |
notifyRMQChannelListeners(RMQChannelEvent event)
Notify
RMQChannelListeners. |
void |
open(com.rabbitmq.client.Connection connection)
Open connection.
|
void |
removeRMQChannelListener(RMQChannelListener rmqChannelListener)
Removes
RMQChannelListener. |
void |
shutdownCompleted(com.rabbitmq.client.ShutdownSignalException shutdownSignalException) |
public void open(com.rabbitmq.client.Connection connection)
throws IOException
connection - the instance of Connection, not RMQConnection.IOException - exception if channel cannot be created.public com.rabbitmq.client.Channel getChannel()
public String getQueueName()
public void close()
public void consume()
public boolean isConsumeStarted()
public void addRMQChannelListener(RMQChannelListener rmqChannelListener)
RMQChannelNotifierRMQChannelListener.addRMQChannelListener インタフェース内 RMQChannelNotifierrmqChannelListener - the channel listener.public void removeRMQChannelListener(RMQChannelListener rmqChannelListener)
RMQChannelNotifierRMQChannelListener.removeRMQChannelListener インタフェース内 RMQChannelNotifierrmqChannelListener - the channel listener.public boolean isOpenRMQChannel()
RMQChannelNotifierisOpenRMQChannel インタフェース内 RMQChannelNotifierpublic void notifyRMQChannelListeners(RMQChannelEvent event)
RMQChannelNotifierRMQChannelListeners.notifyRMQChannelListeners インタフェース内 RMQChannelNotifierevent - the event for channel.public void notifyOnCloseCompleted()
public void notifyOnOpen()
public void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException shutdownSignalException)
shutdownCompleted インタフェース内 com.rabbitmq.client.ShutdownListenershutdownSignalException - the exception.Copyright © 2004-2013. All Rights Reserved.