public class BaseMessage
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseMessage.Serializer |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
clientId
The id of the publisher of this message
|
java.lang.String |
connectionId
The connection id of the publisher of this message
|
java.lang.Object |
data
The message payload.
|
java.lang.String |
encoding
Any transformation applied to the data for this message
|
java.lang.String |
id
A unique id for this message
|
long |
timestamp
The timestamp for this message
|
| Constructor and Description |
|---|
BaseMessage() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
countFields() |
void |
decode(ChannelOptions opts) |
void |
decode(ChannelOptions opts,
DecodingContext context) |
void |
encode(ChannelOptions opts) |
void |
getDetails(java.lang.StringBuilder builder)
Generate a String summary of this BaseMessage
|
public java.lang.String id
public long timestamp
public java.lang.String clientId
public java.lang.String connectionId
public java.lang.String encoding
public java.lang.Object data
public void getDetails(java.lang.StringBuilder builder)
public void decode(ChannelOptions opts) throws MessageDecodeException
MessageDecodeExceptionpublic void decode(ChannelOptions opts, DecodingContext context) throws MessageDecodeException
MessageDecodeExceptionpublic void encode(ChannelOptions opts) throws AblyException
AblyExceptionprotected int countFields()