in src/main/java/org/apache/geronimo/jcache/simple/SimpleCache.java [591:608]
private <T> T doInvoke(final TempStateCacheView<K, V> view, final K key, final EntryProcessor<K, V, T> entryProcessor,
final Object... arguments) {
assertNotClosed();
assertNotNull(entryProcessor, "entryProcessor");
assertNotNull(key, "key");
try {
if (config.isStatisticsEnabled()) {
if (containsKey(key)) {
statistics.increaseHits(1);
} else {
statistics.increaseMisses(1);
}
}
return entryProcessor.process(new SimpleMutableEntry<>(view, key), arguments);
} catch (final Exception ex) {
return throwEntryProcessorException(ex);
}
}