public class MessageValueEvent extends Message
Message.MessageType| Constructor and Description |
|---|
MessageValueEvent(int id,
Object value)
Creates a new message based on the given parameters.
|
MessageValueEvent(javax.json.JsonObject obj)
Creates a new message based on the JSON representation.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue()
The new value.
|
void |
toJson(Writer writer)
Serializes this message as JSON onto the given writer.
|
getId, getMessage, readValueFromJson, writeValueToJsonpublic MessageValueEvent(javax.json.JsonObject obj)
throws MessageDecodeException
obj - JSON objectMessageDecodeException - if json format is incorrectpublic MessageValueEvent(int id,
Object value)
id - the channel idvalue - the new valuepublic Object getValue()
Copyright © 2015. All rights reserved.