public class ConsumeRMQChannel extends AbstractRMQChannel
修飾子とタイプ | クラスと説明 |
---|---|
class |
ConsumeRMQChannel.MessageConsumer
Handle class that consume message.
|
修飾子とタイプ | フィールドと説明 |
---|---|
protected Collection<String> |
appIds |
channel, rmqChannelListeners, state
コンストラクタと説明 |
---|
ConsumeRMQChannel(String queueName,
Collection<String> appIds)
Creates instance with specified parameters.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
consume()
Starts consume.
|
Collection<String> |
getAppIds()
Get hashset of app ids.
|
String |
getQueueName()
Gets queue name.
|
boolean |
isConsumeStarted()
Gets whether consumer is already started or not.
|
void |
shutdownCompleted(com.rabbitmq.client.ShutdownSignalException shutdownSignalException) |
addRMQChannelListener, close, getChannel, isOpen, isOpenRMQChannel, notifyOnCloseCompleted, notifyOnOpen, notifyRMQChannelListeners, open, removeRMQChannelListener
protected final Collection<String> appIds
public ConsumeRMQChannel(String queueName, Collection<String> appIds)
queueName
- the queue name.appIds
- the hashset of application id.public Collection<String> getAppIds()
public String getQueueName()
public void consume()
public boolean isConsumeStarted()
public void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException shutdownSignalException)
shutdownCompleted
インタフェース内 com.rabbitmq.client.ShutdownListener
shutdownCompleted
クラス内 AbstractRMQChannel
shutdownSignalException
- the exception.Copyright © 2016–2018. All rights reserved.