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.EntryProcessorExceptionpublic 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.8.0 Release Date : February 27 2020