/** {@inheritDoc} */ @Override public GatewayProtectedCacheProxy<K, V> skipStore() { CacheOperationGate opGate = onEnter(); try { boolean skip = opCtx.skipStore(); if (skip) return this; return new GatewayProtectedCacheProxy<>(delegate, opCtx.setSkipStore(true), lock); } finally { onLeave(opGate); } }
/** {@inheritDoc} */ @Override public GridCacheProxyImpl<K, V> setSkipStore(boolean skipStore) { CacheOperationContext prev = gate.enter(opCtx); try { if (opCtx != null && opCtx.skipStore() == skipStore) return this; return new GridCacheProxyImpl<>(ctx, delegate, opCtx != null ? opCtx.setSkipStore(skipStore) : new CacheOperationContext(true, null, false, null, false, null, false, DFLT_ALLOW_ATOMIC_OPS_IN_TX)); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public GatewayProtectedCacheProxy<K, V> skipStore() { CacheOperationGate opGate = onEnter(); try { boolean skip = opCtx.skipStore(); if (skip) return this; return new GatewayProtectedCacheProxy<>(delegate, opCtx.setSkipStore(true), lock); } finally { onLeave(opGate); } }
/** {@inheritDoc} */ @Override public GridCacheProxyImpl<K, V> setSkipStore(boolean skipStore) { CacheOperationContext prev = gate.enter(opCtx); try { if (opCtx != null && opCtx.skipStore() == skipStore) return this; return new GridCacheProxyImpl<>(ctx, delegate, opCtx != null ? opCtx.setSkipStore(skipStore) : new CacheOperationContext(true, null, false, null, false, null, false, DFLT_ALLOW_ATOMIC_OPS_IN_TX)); } finally { gate.leave(prev); } }