public interface MqQueue
| 限定符和类型 | 方法和说明 |
|---|---|
void |
acknowledgeAt(String key,
int ack)
确认派发消息
|
void |
add(MqMessageHolder messageHolder)
添加消息
|
void |
affirmAt(String key,
boolean isRollback)
确认事务消息
|
void |
close()
关闭
|
boolean |
distribute()
派发消息
|
void |
forceClear()
强制清空
|
void |
forceDistribute(int times,
int count)
强制派发
|
String |
getConsumerGroup()
获取消费组
|
String |
getQueueName()
获取队列名
|
String |
getTopic()
获取主题
|
boolean |
isTransaction()
是否为事务缓存队列
|
int |
messageTotal()
消息总量
|
int |
messageTotal2()
消息总量2(用作校验)
|
void |
removeAt(String key)
移除消息
|
void |
sessionAdd(org.noear.socketd.transport.core.Session session)
添加消费者会话
|
Collection<org.noear.socketd.transport.core.Session> |
sessionAll()
获取所有消息会话
|
int |
sessionCount()
消费者会话数量
|
void |
sessionRemove(org.noear.socketd.transport.core.Session session)
移除消费者会话
|
boolean isTransaction()
String getTopic()
String getConsumerGroup()
String getQueueName()
void sessionAdd(org.noear.socketd.transport.core.Session session)
void sessionRemove(org.noear.socketd.transport.core.Session session)
Collection<org.noear.socketd.transport.core.Session> sessionAll()
int sessionCount()
void add(MqMessageHolder messageHolder)
void removeAt(String key)
void affirmAt(String key, boolean isRollback)
void acknowledgeAt(String key, int ack)
boolean distribute()
void forceClear()
void forceDistribute(int times,
int count)
int messageTotal()
int messageTotal2()
void close()
Copyright © 2024. All rights reserved.