Package io.ably.lib.types
Class BaseMessage
- java.lang.Object
-
- io.ably.lib.types.BaseMessage
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
Message,PresenceMessage
public class BaseMessage extends java.lang.Object implements java.lang.Cloneable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseMessage.Serializer
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringclientIdThe id of the publisher of this messagejava.lang.StringconnectionIdThe connection id of the publisher of this messagejava.lang.ObjectdataThe message payload.java.lang.StringencodingAny transformation applied to the data for this messagejava.lang.StringidA unique id for this messagelongtimestampThe timestamp for this message
-
Constructor Summary
Constructors Constructor Description BaseMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcountFields()voiddecode(ChannelOptions opts)voidencode(ChannelOptions opts)voidgetDetails(java.lang.StringBuilder builder)Generate a String summary of this BaseMessage
-
-
-
Field Detail
-
id
public java.lang.String id
A unique id for this message
-
timestamp
public long timestamp
The timestamp for this message
-
clientId
public java.lang.String clientId
The id of the publisher of this message
-
connectionId
public java.lang.String connectionId
The connection id of the publisher of this message
-
encoding
public java.lang.String encoding
Any transformation applied to the data for this message
-
data
public java.lang.Object data
The message payload.
-
-
Method Detail
-
getDetails
public void getDetails(java.lang.StringBuilder builder)
Generate a String summary of this BaseMessage
-
decode
public void decode(ChannelOptions opts) throws MessageDecodeException
- Throws:
MessageDecodeException
-
encode
public void encode(ChannelOptions opts) throws AblyException
- Throws:
AblyException
-
countFields
protected int countFields()
-
-