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 aCache
entry using anEntryProcessor
.- Since:
- 1.0
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get()
Obtain the result of processing an entry with anEntryProcessor
.
-
-
-
Method Detail
-
get
T get() throws EntryProcessorException
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
-
-