public class MessageWriteCompletedEvent extends Message
Message.MessageType| Constructor and Description | 
|---|
MessageWriteCompletedEvent(int id)
Creates a new message based on the given parameters. 
 | 
MessageWriteCompletedEvent(int id,
                          String error)
Creates a new message based on the given parameters. 
 | 
MessageWriteCompletedEvent(javax.json.JsonObject obj)
Creates a new message based on the JSON representation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getError()
The error message if the write was unsuccessful or null. 
 | 
boolean | 
isSuccessful()
Whether the write was successful. 
 | 
void | 
toJson(Writer writer)
Serializes this message as JSON onto the given writer. 
 | 
getId, getMessage, readValueFromJson, writeValueToJsonpublic MessageWriteCompletedEvent(javax.json.JsonObject obj)
                           throws MessageDecodeException
obj - JSON objectMessageDecodeException - if json format is incorrectpublic MessageWriteCompletedEvent(int id)
id - the channel idpublic MessageWriteCompletedEvent(int id,
                                  String error)
id - the channel iderror - the error messagepublic String getError()
public boolean isSuccessful()
Copyright © 2015. All rights reserved.