/** {@inheritDoc} */ @Override public GatewayProtectedCacheProxy<K, V> withNoRetries() { CacheOperationGate opGate = onEnter(); try { boolean noRetries = opCtx.noRetries(); if (noRetries) return this; return new GatewayProtectedCacheProxy<>(delegate, opCtx.setNoRetries(true), lock); } finally { onLeave(opGate); } }
opCtx != null && opCtx.isKeepBinary(), opCtx != null && opCtx.recovery(), opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES);
opCtx != null && opCtx.isKeepBinary(), opCtx != null && opCtx.recovery(), opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES);
/** {@inheritDoc} */ @Override public PlatformTarget processOutObject(int type) throws IgniteCheckedException { switch (type) { case OP_WITH_PARTITION_RECOVER: { return copy(rawCache.withPartitionRecover(), keepBinary); } case OP_WITH_KEEP_BINARY: { if (keepBinary) return this; return copy(rawCache.withKeepBinary(), true); } case OP_WITH_NO_RETRIES: { CacheOperationContext opCtx = cache.context().operationContextPerCall(); if (opCtx != null && opCtx.noRetries()) return this; return copy(rawCache.withNoRetries(), keepBinary); } case OP_WITH_SKIP_STORE: { CacheOperationContext opCtx = cache.context().operationContextPerCall(); if (opCtx != null && opCtx.skipStore()) return this; return copy(rawCache.withSkipStore(), keepBinary); } case OP_ITERATOR: { Iterator<Cache.Entry> iter = cache.iterator(); return new PlatformCacheIterator(platformCtx, iter); } } return super.processOutObject(type); }
boolean skipStore = ctx.skipStore(); // Save value of thread-local flag. int retries = opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES;
int retries = opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES;
/** {@inheritDoc} */ @Override public GatewayProtectedCacheProxy<K, V> withNoRetries() { CacheOperationGate opGate = onEnter(); try { boolean noRetries = opCtx.noRetries(); if (noRetries) return this; return new GatewayProtectedCacheProxy<>(delegate, opCtx.setNoRetries(true), lock); } finally { onLeave(opGate); } }
opCtx != null && opCtx.isKeepBinary(), opCtx != null && opCtx.recovery(), opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES);
opCtx != null && opCtx.isKeepBinary(), opCtx != null && opCtx.recovery(), opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES);
/** {@inheritDoc} */ @Override public PlatformTarget processOutObject(int type) throws IgniteCheckedException { switch (type) { case OP_WITH_PARTITION_RECOVER: { return copy(rawCache.withPartitionRecover(), keepBinary); } case OP_WITH_KEEP_BINARY: { if (keepBinary) return this; return copy(rawCache.withKeepBinary(), true); } case OP_WITH_NO_RETRIES: { CacheOperationContext opCtx = cache.context().operationContextPerCall(); if (opCtx != null && opCtx.noRetries()) return this; return copy(rawCache.withNoRetries(), keepBinary); } case OP_WITH_SKIP_STORE: { CacheOperationContext opCtx = cache.context().operationContextPerCall(); if (opCtx != null && opCtx.skipStore()) return this; return copy(rawCache.withSkipStore(), keepBinary); } case OP_ITERATOR: { Iterator<Cache.Entry> iter = cache.iterator(); return new PlatformCacheIterator(platformCtx, iter); } } return super.processOutObject(type); }
boolean skipStore = ctx.skipStore(); // Save value of thread-local flag. int retries = opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES;
int retries = opCtx != null && opCtx.noRetries() ? 1 : MAX_RETRIES;