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 aCacheentry using anEntryProcessor.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()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
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
-
-