public class CacheInvokeDirectResult extends Object implements Message
| Constructor and Description |
|---|
CacheInvokeDirectResult()
Required for
Message. |
CacheInvokeDirectResult(KeyCacheObject key,
CacheObject res) |
CacheInvokeDirectResult(KeyCacheObject key,
Exception err) |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
Exception |
error() |
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheContext ctx,
ClassLoader ldr) |
KeyCacheObject |
key() |
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()
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 byte 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. 1.0.0-RC3 Release Date : March 24 2015