public class PubsubQueue extends MessageQueue
| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<org.zstacks.znet.Message> |
msgQ |
accessToken, broker, createdTime, creator, executor, messageStore, mode, name| Constructor and Description |
|---|
PubsubQueue(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 BlockingQueue<org.zstacks.znet.Message> msgQ
public PubsubQueue(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.