Class CacheInvokeResult<T>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheInvokeResult<T>
-
- All Implemented Interfaces:
Externalizable,Serializable,javax.cache.processor.EntryProcessorResult<T>
public class CacheInvokeResult<T> extends Object implements javax.cache.processor.EntryProcessorResult<T>, Externalizable
Implementation ofEntryProcessorResult.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheInvokeResult()Empty constructor required byExternalizable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Exceptionerror()Entry processor error;static <T> CacheInvokeResult<T>fromError(Exception err)Static constructor.static <T> CacheInvokeResult<T>fromResult(T res)Static constructor.Tget()voidreadExternal(ObjectInput in)Tresult()StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
CacheInvokeResult
public CacheInvokeResult()
Empty constructor required byExternalizable.
-
-
Method Detail
-
fromResult
public static <T> CacheInvokeResult<T> fromResult(T res)
Static constructor.- Parameters:
res- Computed result.- Returns:
- New instance.
-
result
public T result()
- Returns:
- Result.
-
error
public Exception error()
Entry processor error;
-
fromError
public static <T> CacheInvokeResult<T> fromError(Exception err)
Static constructor.- Parameters:
err- Exception thrown byEntryProcessor.process(MutableEntry, Object...).- Returns:
- New instance.
-
get
public T get() throws javax.cache.processor.EntryProcessorException
- Specified by:
getin interfacejavax.cache.processor.EntryProcessorResult<T>- Throws:
javax.cache.processor.EntryProcessorException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-