Interface EntryProcessorResult<T>
- Type Parameters:
T- the type of the return value
public interface EntryProcessorResult<T>
A mechanism to represent and obtain the result of processing
a
Cache entry using an EntryProcessor.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionget()Obtain the result of processing an entry with anEntryProcessor.
-
Method Details
-
get
Obtain the result of processing an entry with anEntryProcessor.If an exception was thrown during the processing of an entry, either by the
EntryProcessoritself or by the Caching implementation, the exceptions will be wrapped and re-thrown as aEntryProcessorExceptionwhen calling this method.- Returns:
- the result of processing
- Throws:
CacheException- if the implementation failed to execute theEntryProcessorEntryProcessorException- if theEntryProcessorraised an exception, this exception will be used to wrap the causing exception
-