public class GridCacheReturn extends Object implements Externalizable, Message
| Constructor and Description |
|---|
GridCacheReturn()
Empty constructor.
|
GridCacheReturn(boolean loc) |
GridCacheReturn(boolean loc,
boolean success) |
GridCacheReturn(GridCacheContext cctx,
boolean loc,
Object v,
boolean success) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntryProcessResult(GridCacheContext cctx,
KeyCacheObject key,
Object key0,
Object res,
Exception err) |
int |
cacheId() |
byte |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheContext ctx,
ClassLoader ldr) |
boolean |
hasValue()
Checks if value is not
null. |
boolean |
invokeResult() |
void |
invokeResult(boolean invokeRes) |
void |
mergeEntryProcessResults(GridCacheReturn other) |
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 |
success() |
GridCacheReturn |
success(boolean success) |
String |
toString() |
<V> V |
value() |
GridCacheReturn |
value(GridCacheContext cctx,
CacheObject v) |
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, 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 hasValue()
null.True if value is not null.public boolean invokeResult()
public void invokeResult(boolean invokeRes)
invokeRes - Invoke result flag.public GridCacheReturn value(GridCacheContext cctx, CacheObject v)
cctx - Cache context.v - Value.public boolean success()
public GridCacheReturn set(GridCacheContext cctx, @Nullable CacheObject cacheObj, boolean success)
cctx - Cache context.cacheObj - Value to set.success - Success flag to set.public GridCacheReturn success(boolean success)
success - Success flag.public void addEntryProcessResult(GridCacheContext cctx, KeyCacheObject key, @Nullable Object key0, @Nullable Object res, @Nullable Exception err)
cctx - Context.key - Key.key0 - Key value.res - Result.err - Error.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 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 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. 1.0.0 Release Date : March 31 2015