public interface Payload<C,R> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttachment(String key)
获取附件
|
C |
getContent()
内容
|
boolean |
getHandled()
获取处理标识
|
String |
getPlid()
负载标识
|
String |
getTopic()
主题
|
boolean |
isRequest()
Deprecated.
1.1.0 (简化模式,不再支持流调用)
|
boolean |
isSubscribe()
Deprecated.
1.1.0 (简化模式,不再支持流调用)
|
boolean |
reply(R content)
答复
|
boolean |
requiredReply()
要求答复
|
<T> void |
setAttachment(String key,
T value)
设置附件
|
void |
setHandled()
设置处理标识
|
<T> T getAttachment(String key)
key - 关键字<T> void setAttachment(String key, T value)
key - 关键字value - 值void setHandled()
boolean getHandled()
boolean requiredReply()
@Deprecated boolean isRequest()
@Deprecated boolean isSubscribe()
boolean reply(R content)
content - 内容String getPlid()
String getTopic()
C getContent()
Copyright © 2025. All rights reserved.