Package javax.cache.processor
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
EntryProcessor
itself or by the Caching implementation, the exceptions will be wrapped and re-thrown as aEntryProcessorException
when calling this method.- Returns:
- the result of processing
- Throws:
CacheException
- if the implementation failed to execute theEntryProcessor
EntryProcessorException
- if theEntryProcessor
raised an exception, this exception will be used to wrap the causing exception
-