public class CacheInvokeDirectResult extends Object implements Message
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
CacheInvokeDirectResult()
Required for
Message. |
CacheInvokeDirectResult(KeyCacheObject key,
CacheObject res) |
CacheInvokeDirectResult(KeyCacheObject key,
Exception err) |
| Modifier and Type | Method and Description |
|---|---|
short |
directType()
Gets message type.
|
Exception |
error() |
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheContext ctx,
ClassLoader ldr) |
KeyCacheObject |
key() |
void |
onAckReceived()
Method called when ack message received.
|
void |
prepareMarshal(GridCacheContext ctx) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
CacheObject |
result() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public CacheInvokeDirectResult()
Message.public CacheInvokeDirectResult(KeyCacheObject key, CacheObject res)
key - Key.res - Result.public CacheInvokeDirectResult(KeyCacheObject key, Exception err)
key - Key.err - Exception thrown by EntryProcessor.process(MutableEntry, Object...).public KeyCacheObject key()
public CacheObject result()
@Nullable public Exception error()
public void prepareMarshal(GridCacheContext ctx) throws IgniteCheckedException
ctx - Cache context.IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheContext ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Cache context.ldr - Class loader.IgniteCheckedException - If failed.public void onAckReceived()
onAckReceived in interface Messagepublic short directType()
directType in interface Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018