public class GridTaskResultResponse extends Object implements Message
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridTaskResultResponse() |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
String |
error() |
void |
error(String err) |
byte |
fieldsCount()
Gets fields count.
|
boolean |
finished() |
void |
finished(boolean finished) |
boolean |
found() |
void |
found(boolean found) |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
Object |
result() |
void |
result(Object res) |
byte[] |
resultBytes() |
void |
resultBytes(byte[] resBytes) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
@Nullable public Object result()
public void result(@Nullable Object res)
res
- Task result.public void resultBytes(byte[] resBytes)
resBytes
- Serialized result.public byte[] resultBytes()
public boolean finished()
true
if finished.public void finished(boolean finished)
finished
- true
if finished.public boolean found()
true
if found.public void found(boolean found)
found
- true
if found.public String error()
public void error(String err)
err
- Error.public void onAckReceived()
onAckReceived
in interface Message
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017