public class GridCacheReturn extends Object implements Externalizable, Message
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridCacheReturn()
Empty constructor.
|
GridCacheReturn(boolean loc) |
GridCacheReturn(boolean loc,
boolean success) |
GridCacheReturn(GridCacheContext cctx,
boolean loc,
boolean keepBinary,
@Nullable ClassLoader ldr,
Object v,
boolean success) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntryProcessResult(GridCacheContext cctx,
KeyCacheObject key,
@Nullable Object key0,
@Nullable Object res,
@Nullable Exception err,
boolean keepBinary) |
int |
cacheId() |
short |
directType()
Gets message type.
|
boolean |
emptyResult() |
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheContext ctx,
ClassLoader ldr) |
boolean |
invokeResult() |
void |
invokeResult(boolean invokeRes) |
void |
marshalResult(GridCacheContext ctx)
Converts entry processor invokation results to cache object instances.
|
void |
mergeEntryProcessResults(GridCacheReturn other) |
void |
onAckReceived()
Method called when ack message received.
|
void |
prepareMarshal(GridCacheContext ctx) |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
GridCacheReturn |
set(GridCacheContext cctx,
@Nullable CacheObject cacheObj,
boolean success,
boolean keepBinary,
@Nullable ClassLoader ldr) |
boolean |
success() |
GridCacheReturn |
success(boolean success) |
String |
toString() |
<V> V |
value() |
GridCacheReturn |
value(GridCacheContext cctx,
CacheObject v,
boolean keepBinary,
@Nullable ClassLoader ldr) |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public GridCacheReturn()
public GridCacheReturn(boolean loc)
loc - True if created on the node initiated cache operation.public GridCacheReturn(boolean loc,
boolean success)
loc - True if created on the node initiated cache operation.success - Success flag.public GridCacheReturn(GridCacheContext cctx, boolean loc, boolean keepBinary, @Nullable @Nullable ClassLoader ldr, Object v, boolean success)
cctx - Cache context.loc - True if created on the node initiated cache operation.keepBinary - True is deserialize value from a binary representation, false otherwise.ldr - Class loader, used for deserialization from binary representation.v - Value.success - Success flag.@Nullable public <V> V value()
public boolean emptyResult()
public boolean invokeResult()
public void invokeResult(boolean invokeRes)
invokeRes - Invoke result flag.public GridCacheReturn value(GridCacheContext cctx, CacheObject v, boolean keepBinary, @Nullable @Nullable ClassLoader ldr)
cctx - Cache context.v - Value.keepBinary - Keep binary flag.ldr - Class loader, used for deserialization from binary representation.public boolean success()
public GridCacheReturn set(GridCacheContext cctx, @Nullable @Nullable CacheObject cacheObj, boolean success, boolean keepBinary, @Nullable @Nullable ClassLoader ldr)
cctx - Cache context.cacheObj - Value to set.success - Success flag to set.keepBinary - Keep binary flag.ldr - Class loader, used for deserialization from binary representation.public GridCacheReturn success(boolean success)
success - Success flag.public void addEntryProcessResult(GridCacheContext cctx, KeyCacheObject key, @Nullable @Nullable Object key0, @Nullable @Nullable Object res, @Nullable @Nullable Exception err, boolean keepBinary)
cctx - Context.key - Key.key0 - Key value.res - Result.err - Error.keepBinary - Keep binary.public int cacheId()
public void mergeEntryProcessResults(GridCacheReturn other)
other - Other result to merge with.public void marshalResult(GridCacheContext ctx)
ctx - Cache context.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 Messagepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021