类 Events<T extends com.google.protobuf.Message>
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- xin.alum.aio.model.Transportable
-
- xin.alum.aio.model.Events<T>
-
- 所有已实现的接口:
io.netty.util.ReferenceCounted,Serializable
public class Events<T extends com.google.protobuf.Message> extends Transportable implements Serializable
基于ProtoBuy的数据通信抽象类- 另请参阅:
- 序列化表格
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]getBody()消息体字节数组intgetTag()Tlv类型中的Tag---请自定义com.google.protobuf.MessagetoMessage()转换ProtoBufStringtoString()Tunpack(Class<T> clazz)将Data解包成Message对象-
从类继承的方法 xin.alum.aio.model.Transportable
deallocate, toJson, toProto, touch
-
-
-
-
字段详细资料
-
data
protected T extends com.google.protobuf.Message data
返回数据集合
-
-
方法详细资料
-
toMessage
public com.google.protobuf.Message toMessage()
转换ProtoBuf- 返回:
-
getBody
public byte[] getBody()
从类复制的说明:Transportable消息体字节数组- 指定者:
getBody在类中Transportable- 返回:
-
getTag
public int getTag()
从类复制的说明:TransportableTlv类型中的Tag---请自定义- 指定者:
getTag在类中Transportable- 返回:
-
-