public class ReplyQueue extends MessageQueue
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<String,org.zstacks.znet.Message> |
msgQ |
accessToken, broker, createdTime, creator, executor, messageStore, mode, name| Constructor and Description |
|---|
ReplyQueue(String broker,
String name,
ExecutorService executor,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanSession() |
void |
consume(org.zstacks.znet.Message msg,
org.zstacks.znet.nio.Session sess) |
List<ConsumerInfo> |
getConsumerInfoList() |
int |
getMessageQueueSize() |
void |
produce(org.zstacks.znet.Message msg,
org.zstacks.znet.nio.Session sess) |
getAccessToken, getCreatedTime, getCreator, getExecutor, getMessageStore, getMode, getMqInfo, getName, prepareMessageStatus, setAccessToken, setCreatedTime, setCreator, setExecutor, setMessageStore, toStringprotected final ConcurrentMap<String,org.zstacks.znet.Message> msgQ
public ReplyQueue(String broker, String name, ExecutorService executor, int mode)
public void produce(org.zstacks.znet.Message msg,
org.zstacks.znet.nio.Session sess)
throws IOException
produce in class MessageQueueIOExceptionpublic void consume(org.zstacks.znet.Message msg,
org.zstacks.znet.nio.Session sess)
throws IOException
consume in class MessageQueueIOExceptionpublic void cleanSession()
cleanSession in class MessageQueuepublic List<ConsumerInfo> getConsumerInfoList()
getConsumerInfoList in class MessageQueuepublic int getMessageQueueSize()
getMessageQueueSize in class MessageQueueCopyright © 2015. All rights reserved.