public class GridCacheReturn<V> extends Object implements Externalizable, OptimizedMarshallable
CLS_ID_FIELD_NAME| Constructor and Description |
|---|
GridCacheReturn()
Empty constructor.
|
GridCacheReturn(boolean success) |
GridCacheReturn(V v,
boolean success) |
GridCacheReturn(V v,
boolean success,
boolean invokeRes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntryProcessResult(Object key,
javax.cache.processor.EntryProcessorResult<?> res) |
Object |
ggClassId()
Implementation of this method should simply return value of
GG_CLASS_ID field. |
boolean |
hasValue()
Checks if value is not
null. |
boolean |
invokeResult() |
void |
invokeResult(boolean invokeRes) |
void |
mergeEntryProcessResults(GridCacheReturn<V> other) |
void |
readExternal(ObjectInput in) |
GridCacheReturn<V> |
set(V v,
boolean success) |
boolean |
success() |
GridCacheReturn<V> |
success(boolean success) |
String |
toString() |
V |
value() |
GridCacheReturn<V> |
value(V v) |
void |
writeExternal(ObjectOutput out) |
public GridCacheReturn()
public GridCacheReturn(boolean success)
success - Success flag.public GridCacheReturn(V v, boolean success)
v - Value.success - Success flag.public GridCacheReturn(V v, boolean success, boolean invokeRes)
v - Value.success - Success flag.public boolean hasValue()
null.True if value is not null.public boolean invokeResult()
public void invokeResult(boolean invokeRes)
invokeRes - Invoke result flag.public GridCacheReturn<V> value(V v)
v - Value.public boolean success()
public GridCacheReturn<V> set(@Nullable V v, boolean success)
v - Value to set.success - Success flag to set.public GridCacheReturn<V> success(boolean success)
success - Success flag.public void addEntryProcessResult(Object key, javax.cache.processor.EntryProcessorResult<?> res)
key - Key.res - Result.public void mergeEntryProcessResults(GridCacheReturn<V> other)
other - Other result to merge with.public Object ggClassId()
GG_CLASS_ID field.ggClassId in interface OptimizedMarshallablepublic 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-RC1 Release Date : February 17 2015