public class Sent extends Transportable
| 限定符和类型 | 字段和说明 |
|---|---|
protected T |
data
返回数据集合
|
logger| 构造器和说明 |
|---|
Sent() |
Sent(String key) |
Sent(String key,
long timestamp) |
Sent(String key,
long timestamp,
com.google.protobuf.Message data) |
Sent(String key,
com.google.protobuf.Message data) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBody()
消息体字节数组
|
int |
getType()
消息类型,请参阅AIMConstant.DATA_TYPE_****
|
Packet.Sent |
toBuilder()
转换ProtoBuf
|
String |
toJson()
默认Protobuf转JSON
|
String |
toJson(com.google.protobuf.Descriptors.Descriptor anyFieldDescriptor)
自定义Protobuf转Json
|
String |
toJson(List<com.google.protobuf.Descriptors.Descriptor> anyFieldDescriptor)
自定义Protobuf转Json
|
String |
toString() |
T |
unpack(Class<T> clazz)
将Data解包成Message对象
|
deallocate, InitRefCnf, touchpublic Sent()
public Sent(String key)
public Sent(String key, long timestamp)
public Sent(String key, long timestamp, com.google.protobuf.Message data)
public Sent(String key, com.google.protobuf.Message data)
public int getType()
TransportablegetType 在类中 Transportablepublic Packet.Sent toBuilder()
public T unpack(Class<T> clazz)
clazz - 解包目录类public byte[] getBody()
TransportablegetBody 在类中 Transportablepublic String toJson()
public String toJson(com.google.protobuf.Descriptors.Descriptor anyFieldDescriptor)
anyFieldDescriptor - Copyright © 2020–2022 The AIM Project. All rights reserved.