public class CacheInvokeResult<T> extends Object implements javax.cache.processor.EntryProcessorResult<T>, Externalizable
EntryProcessorResult
.Constructor and Description |
---|
CacheInvokeResult()
Empty constructor required by
Externalizable . |
Modifier and Type | Method and Description |
---|---|
Exception |
error()
Entry processor error;
|
static <T> CacheInvokeResult<T> |
fromError(Exception err)
Static constructor.
|
static <T> CacheInvokeResult<T> |
fromResult(T res)
Static constructor.
|
T |
get() |
void |
readExternal(ObjectInput in) |
T |
result() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public CacheInvokeResult()
Externalizable
.public static <T> CacheInvokeResult<T> fromResult(T res)
res
- Computed result.public T result()
public Exception error()
public static <T> CacheInvokeResult<T> fromError(Exception err)
err
- Exception thrown by EntryProcessor.process(MutableEntry, Object...)
.public T get() throws javax.cache.processor.EntryProcessorException
get
in interface javax.cache.processor.EntryProcessorResult<T>
javax.cache.processor.EntryProcessorException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017