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