Class CacheInvokeDirectResult
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheInvokeDirectResult
-
- All Implemented Interfaces:
Serializable,Message
public class CacheInvokeDirectResult extends Object implements Message
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description CacheInvokeDirectResult()Required forMessage.CacheInvokeDirectResult(KeyCacheObject key, Exception err)CacheInvokeDirectResult(KeyCacheObject key, CacheObject res)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdirectType()Gets message type.@Nullable Exceptionerror()bytefieldsCount()Gets fields count.voidfinishUnmarshal(GridCacheContext ctx, ClassLoader ldr)KeyCacheObjectkey()voidmarshalResult(GridCacheContext ctx)Converts the entry processor unprepared result to a cache object instance.voidonAckReceived()Method called when ack message received.voidprepareMarshal(GridCacheContext ctx)booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.CacheObjectresult()StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
CacheInvokeDirectResult
public CacheInvokeDirectResult()
Required forMessage.
-
CacheInvokeDirectResult
public CacheInvokeDirectResult(KeyCacheObject key, CacheObject res)
- Parameters:
key- Key.res- Result.
-
CacheInvokeDirectResult
public CacheInvokeDirectResult(KeyCacheObject key, Exception err)
- Parameters:
key- Key.err- Exception thrown byEntryProcessor.process(MutableEntry, Object...).
-
-
Method Detail
-
key
public KeyCacheObject key()
- Returns:
- Key.
-
result
public CacheObject result()
- Returns:
- Result.
-
error
@Nullable public @Nullable Exception error()
- Returns:
- Error.
-
prepareMarshal
public void prepareMarshal(GridCacheContext ctx) throws IgniteCheckedException
- Parameters:
ctx- Cache context.- Throws:
IgniteCheckedException- If failed.
-
marshalResult
public void marshalResult(GridCacheContext ctx)
Converts the entry processor unprepared result to a cache object instance.- Parameters:
ctx- Cache context.
-
finishUnmarshal
public void finishUnmarshal(GridCacheContext ctx, ClassLoader ldr) throws IgniteCheckedException
- Parameters:
ctx- Cache context.ldr- Class loader.- Throws:
IgniteCheckedException- If failed.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-