类 Notice
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- xin.alum.aio.model.Transportable
-
- xin.alum.aio.model.Notice
-
- 所有已实现的接口:
io.netty.util.ReferenceCounted,Serializable
public class Notice extends Transportable implements Serializable
消息对象- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 xin.alum.aio.model.Transportable
body, json, logger
-
-
构造器概要
构造器 构造器 说明 Notice()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voiddeallocate()StringgetAction()byte[]getBody()消息体字节数组StringgetContent()StringgetExtra()StringgetFormat()longgetId()StringgetReceiver()StringgetSender()intgetTag()Tlv类型中的Tag---请自定义LonggetTimestamp()StringgetTitle()booleanisNotEmpty(String txt)voidsetAction(String action)voidsetContent(String content)voidsetExtra(String extra)voidsetFormat(String format)voidsetId(long id)voidsetReceiver(String receiver)voidsetSender(String sender)voidsetTimestamp(long timestamp)voidsetTitle(String title)Aio.NoticetoBuilder()StringtoString()-
从类继承的方法 xin.alum.aio.model.Transportable
toJson, toProto, touch
-
-
-
-
方法详细资料
-
deallocate
protected void deallocate()
- 覆盖:
deallocate在类中Transportable
-
getId
public long getId()
-
setId
public void setId(long id)
-
getTimestamp
public Long getTimestamp()
-
setTimestamp
public void setTimestamp(long timestamp)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getContent
public String getContent()
-
setContent
public void setContent(String content)
-
getSender
public String getSender()
-
setSender
public void setSender(String sender)
-
getReceiver
public String getReceiver()
-
setReceiver
public void setReceiver(String receiver)
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
getExtra
public String getExtra()
-
setExtra
public void setExtra(String extra)
-
isNotEmpty
public boolean isNotEmpty(String txt)
-
getBody
public byte[] getBody()
从类复制的说明:Transportable消息体字节数组- 指定者:
getBody在类中Transportable- 返回:
-
toBuilder
public Aio.Notice toBuilder()
-
getTag
public int getTag()
从类复制的说明:TransportableTlv类型中的Tag---请自定义- 指定者:
getTag在类中Transportable- 返回:
-
-