public class PayloadBack extends java.lang.Object implements Payload
Payload which can be used for a simple callback.
 Usual this class should be inherit for more data.
 That's why the implementation of serialize() and deserialize(byte[]) is not sensible implemented.| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | bDoneThis bit should be set if the back event should notify that the task is done with or without error. | 
| protected java.lang.String | sErrorA possible error message. | 
| static java.lang.String | versionVersion, license and history. | 
| Constructor and Description | 
|---|
| PayloadBack() | 
| Modifier and Type | Method and Description | 
|---|---|
| PayloadBack | clean()Common operation to clean the content. | 
| boolean | deserialize(byte[] data)Deserialize is not supported by this implementation. | 
| boolean | done() | 
| java.lang.String | error() | 
| byte[] | serialize()Serialize is not supported by this implementation. | 
| void | setDone(boolean bDone,
       java.lang.String sError) | 
public static final java.lang.String version
EventConsumerAwait
 protected boolean bDone
protected java.lang.String sError
public void setDone(boolean bDone,
                    java.lang.String sError)
public java.lang.String error()
public boolean done()
public PayloadBack clean()
Payloadpublic byte[] serialize()
public boolean deserialize(byte[] data)
deserialize in interface Payload