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.
|
@Nullable Exception |
error() |
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheContext ctx,
ClassLoader ldr) |
KeyCacheObject |
key() |
void |
marshalResult(GridCacheContext ctx)
Converts the entry processor unprepared result to a cache object instance.
|
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 @Nullable Exception error()
public void prepareMarshal(GridCacheContext ctx) throws IgniteCheckedException
ctx - Cache context.IgniteCheckedException - If failed.public void marshalResult(GridCacheContext ctx)
ctx - Cache context.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 Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021