public interface Payload<C,R>
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
getAttachment(String key)
获取附件
|
C |
getContent()
内容
|
String |
getGuid()
唯一标识
|
boolean |
getHandled()
获取处理标识
|
String |
getTopic()
主题
|
boolean |
isRequest()
是否为请求(是的话,需要答复)
|
boolean |
reply(R content)
答复
|
<T> void |
setAttachment(String key,
T value)
设置附件
|
void |
setHandled(boolean handled)
设置处理标识
|
<T> T getAttachment(String key)
key - 关键字<T> void setAttachment(String key, T value)
key - 关键字value - 值void setHandled(boolean handled)
boolean getHandled()
boolean isRequest()
boolean reply(R content)
content - 内容String getGuid()
String getTopic()
C getContent()
Copyright © 2023. All rights reserved.