public class Message extends Object
Channel
and has added a
Channel.OnMessageListener
via Channel.addOnMessageListener(String, Channel.OnMessageListener)
,
then this client will be notified when the host or other clients publish
messages to the specified event channel.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_MESSAGE_ID |
static String |
TARGET_ALL |
static String |
TARGET_BROADCAST |
static String |
TARGET_HOST |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Channel |
getChannel()
Returns the channel that this message is associated with.
|
Object |
getData()
The data for this message.
|
String |
getEvent()
Returns the channel event for this message.
|
Client |
getFrom()
The originating client for this message.
|
byte[] |
getPayload()
The binary payload for this message.
|
int |
hashCode() |
String |
toString() |
public static final String TARGET_BROADCAST
public static final String TARGET_ALL
public static final String TARGET_HOST
public static final String PROPERTY_MESSAGE_ID
@NonNull public Channel getChannel()
@NonNull public String getEvent()
public Object getData()
@NonNull public Client getFrom()
public byte[] getPayload()