public class PayloadDefault<C,R> extends Object implements Payload<C,R>, Serializable
| 构造器和说明 |
|---|
PayloadDefault(String topic,
C content,
Acceptor<R> acceptor) |
public <T> T getAttachment(String key)
getAttachment 在接口中 Payload<C,R>key - 关键字public <T> void setAttachment(String key, T value)
setAttachment 在接口中 Payload<C,R>key - 关键字value - 值public C getContent()
getContent 在接口中 Payload<C,R>Copyright © 2023. All rights reserved.