R - Result type.public class SingleNodeMessage<R extends Serializable> extends Object implements Message
DistributedProcess,
FullMessage,
InitMessage,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static short |
TYPE_CODE
Initial channel message type (value is
176). |
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
SingleNodeMessage()
Empty constructor for marshalling purposes.
|
SingleNodeMessage(UUID processId,
DistributedProcess.DistributedProcessType type,
R resp,
Throwable err) |
| Modifier and Type | Method and Description |
|---|---|
short |
directType()
Gets message type.
|
Throwable |
error() |
byte |
fieldsCount()
Gets fields count.
|
boolean |
hasError() |
void |
onAckReceived()
Method called when ack message received.
|
UUID |
processId() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
R |
response() |
int |
type() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public static final short TYPE_CODE
176).public SingleNodeMessage()
public SingleNodeMessage(UUID processId, DistributedProcess.DistributedProcessType type, R resp, Throwable err)
processId - Process id.type - Process type.resp - Single node response.err - Error.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void onAckReceived()
onAckReceived in interface Messagepublic UUID processId()
public int type()
public R response()
public boolean hasError()
True if finished with error.public Throwable error()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023