/** * @param invokeEntry Entry for {@link EntryProcessor}. * @return Entry processor return value. */ private IgniteBiTuple<Object, Exception> runEntryProcessor(CacheInvokeEntry<Object, Object> invokeEntry) { EntryProcessor<Object, Object, ?> entryProcessor = (EntryProcessor<Object, Object, ?>)writeObj; IgniteThread.onEntryProcessorEntered(true); try { Object computed = entryProcessor.process(invokeEntry, invokeArgs); if (invokeEntry.modified()) { GridCacheContext cctx = entry.context(); writeObj = cctx.toCacheObject(cctx.unwrapTemporary(invokeEntry.getValue())); } else writeObj = invokeEntry.valObj; if (computed != null) return new IgniteBiTuple<>(entry.cctx.unwrapTemporary(computed), null); return null; } catch (Exception e) { if (e instanceof UnregisteredClassException || e instanceof UnregisteredBinaryTypeException) throw (IgniteException)e; writeObj = invokeEntry.valObj; return new IgniteBiTuple<>(null, e); } finally { IgniteThread.onEntryProcessorLeft(); } }
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
/** * @param invokeEntry Entry for {@link EntryProcessor}. * @return Entry processor return value. */ @SuppressWarnings("unchecked") private IgniteBiTuple<Object, Exception> runEntryProcessor(CacheInvokeEntry<Object, Object> invokeEntry) { EntryProcessor<Object, Object, ?> entryProcessor = (EntryProcessor<Object, Object, ?>)writeObj; IgniteThread.onEntryProcessorEntered(true); try { Object computed = entryProcessor.process(invokeEntry, invokeArgs); if (invokeEntry.modified()) { GridCacheContext cctx = entry.context(); writeObj = cctx.toCacheObject(cctx.unwrapTemporary(invokeEntry.getValue())); } else writeObj = invokeEntry.valObj; if (computed != null) return new IgniteBiTuple<>(entry.cctx.unwrapTemporary(computed), null); return null; } catch (Exception e) { if (e instanceof UnregisteredClassException || e instanceof UnregisteredBinaryTypeException) throw (IgniteException)e; writeObj = invokeEntry.valObj; return new IgniteBiTuple<>(null, e); } finally { IgniteThread.onEntryProcessorLeft(); } }
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();
IgniteThread.onEntryProcessorLeft();