/** {@inheritDoc} */ @Override public IgniteBiTuple<Boolean, Object> onBeforeRemove(Cache.Entry<Object, Object> entry) { if (!noInterceptor) return (IgniteBiTuple)delegate.onBeforeRemove((Cache.Entry)entry); return new IgniteBiTuple<>(false, entry.getValue()); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override @Nullable public IgniteBiTuple onBeforeRemove(Cache.Entry entry) { if (disabled) return new IgniteBiTuple(false, entry.getValue()); assertNotNull(retInterceptor); IgniteBiTuple ret = retInterceptor.onBeforeRemove(entry); System.out.println("Before remove [key=" + entry.getKey() + ", val=" + entry.getValue() + ", ret=" + ret + ']'); invokeCnt.incrementAndGet(); if (entry.getValue() != null) { Object old = beforeRmvMap.put(entry.getKey(), entry.getValue()); if (old != null) assertEquals(old, entry.getValue()); } return ret; }
if (intercept) { IgniteBiTuple<Boolean, ?> interceptorRes = ctx.config().getInterceptor() .onBeforeRemove(new CacheLazyEntry(ctx, entry.key(), invokeEntry.key(), old, oldVal, keepBinary)); .onBeforeRemove(new CacheLazyEntry(ctx, entry.key(), old, keepBinary));
IgniteBiTuple<Boolean, Object> t = cacheCtx.config().getInterceptor().onBeforeRemove( new CacheLazyEntry(cacheCtx, key, e.cached().rawGet(), e.keepBinary()));
CacheLazyEntry e = new CacheLazyEntry(ctx, entry.key(), invokeEntry.key(), old, oldVal, req.keepBinary()); IgniteBiTuple<Boolean, ?> interceptorRes = ctx.config().getInterceptor().onBeforeRemove(e); .onBeforeRemove(new CacheLazyEntry(ctx, entry.key(), old, req.keepBinary()));
new CacheLazyEntry<>(cctx, entry.key, null, oldVal, null, keepBinary); interceptRes = cctx.config().getInterceptor().onBeforeRemove(intercepEntry);
entry0 = new CacheLazyEntry(cctx, key, old, keepBinary); interceptRes = cctx.config().getInterceptor().onBeforeRemove(entry0);
e = new CacheLazyEntry(cctx, key, key0, old, old0, keepBinary); interceptorRes = cctx.config().getInterceptor().onBeforeRemove(e);
if (intercept) { IgniteBiTuple<Boolean, ?> interceptorRes = ctx.config().getInterceptor() .onBeforeRemove(new CacheLazyEntry(ctx, entry.key(), invokeEntry.key(), old, oldVal, keepBinary)); .onBeforeRemove(new CacheLazyEntry(ctx, entry.key(), old, keepBinary));
IgniteBiTuple<Boolean, Object> t = cacheCtx.config().getInterceptor().onBeforeRemove( new CacheLazyEntry(cacheCtx, key, e.cached().rawGet(), e.keepBinary()));
CacheLazyEntry e = new CacheLazyEntry(ctx, entry.key(), invokeEntry.key(), old, oldVal, req.keepBinary()); IgniteBiTuple<Boolean, ?> interceptorRes = ctx.config().getInterceptor().onBeforeRemove(e); .onBeforeRemove(new CacheLazyEntry(ctx, entry.key(), old, req.keepBinary()));
keepBinary); interceptRes = cctx.config().getInterceptor().onBeforeRemove(intercepEntry);
entry0 = new CacheLazyEntry(cctx, key, old, keepBinary); interceptRes = cctx.config().getInterceptor().onBeforeRemove(entry0);
e = new CacheLazyEntry(cctx, key, key0, old, old0, keepBinary); interceptorRes = cctx.config().getInterceptor().onBeforeRemove(e);