public interface BroadcastService
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
THIS_SERVER_FLAG
本服务标识
This server container ID flag
|
static String |
TOPIC
订阅主题,对用户指定的 topic 进行一些封装,防止 topic 过于简单或者用户不设置 topic
Subscribe to the topic, encapsulate the topic specified by the user to prevent the topic from being too simple or empty
|
static String |
TOPIC_VERSION
广播主题版本号,如果新版本升级导致广播的消息无法兼容,则通过版本号升级来防止消息冲突
Broadcast topic version.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dequeue(BroadcastMessage message)
消息出队
Message dequeue
|
void |
enqueue(BroadcastMessage message)
消息入队
Message enqueue
|
static final String THIS_SERVER_FLAG
static final String TOPIC_VERSION
void enqueue(BroadcastMessage message)
message - BroadcastMessagevoid dequeue(BroadcastMessage message)
message - BroadcastMessageCopyright © 2020. All rights reserved.