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,
Object v,
boolean success) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntryProcessResult(GridCacheContext cctx,
KeyCacheObject key,
Object key0,
Object res,
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 |
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,
CacheObject cacheObj,
boolean success,
boolean keepBinary) |
boolean |
success() |
GridCacheReturn |
success(boolean success) |
String |
toString() |
<V> V |
value() |
GridCacheReturn |
value(GridCacheContext cctx,
CacheObject v,
boolean keepBinary) |
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, Object v, boolean success)
cctx - Cache context.loc - True if created on the node initiated cache operation.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)
cctx - Cache context.v - Value.public boolean success()
public GridCacheReturn set(GridCacheContext cctx, @Nullable CacheObject cacheObj, boolean success, boolean keepBinary)
cctx - Cache context.cacheObj - Value to set.success - Success flag to set.keepBinary - Keep binary flag.public GridCacheReturn success(boolean success)
success - Success flag.public void addEntryProcessResult(GridCacheContext cctx, KeyCacheObject key, @Nullable Object key0, @Nullable Object res, @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 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 Fabric : ver. 2.5.0 Release Date : May 23 2018