/** * Gets subject ID per call. * * @param subjId Optional already existing subject ID. * @param opCtx Optional thread local operation context. * @return Subject ID per call. */ public UUID subjectIdPerCall(@Nullable UUID subjId, @Nullable CacheOperationContext opCtx) { if (opCtx != null) subjId = opCtx.subjectId(); if (subjId == null) subjId = ctx.localNodeId(); return subjId; }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<Map<K, V>> getAllAsync(@Nullable final Collection<? extends K> keys) { A.notNull(keys, "keys"); final boolean statsEnabled = ctx.statisticsEnabled(); final long start = statsEnabled ? System.nanoTime() : 0L; String taskName = ctx.kernalContext().job().currentTaskName(); CacheOperationContext opCtx = ctx.operationContextPerCall(); IgniteInternalFuture<Map<K, V>> fut = getAllAsync( keys, !ctx.config().isReadFromBackup(), /*skip tx*/false, opCtx != null ? opCtx.subjectId() : null, taskName, !(opCtx != null && opCtx.isKeepBinary()), opCtx != null && opCtx.recovery(), /*skip vals*/false, /*need ver*/false); if (ctx.config().getInterceptor() != null) return fut.chain(new CX1<IgniteInternalFuture<Map<K, V>>, Map<K, V>>() { @Override public Map<K, V> applyx(IgniteInternalFuture<Map<K, V>> f) throws IgniteCheckedException { return interceptGet(keys, f.get()); } }); if (statsEnabled) fut.listen(new UpdateGetTimeStatClosure<Map<K, V>>(metrics0(), start)); return fut; }
!ctx.config().isReadFromBackup(), /*skip tx*/false, opCtx != null ? opCtx.subjectId() : null, taskName, !(opCtx != null && opCtx.isKeepBinary()),
/** * Gets subject ID per call. * * @param subjId Optional already existing subject ID. * @param opCtx Optional thread local operation context. * @return Subject ID per call. */ public UUID subjectIdPerCall(@Nullable UUID subjId, @Nullable CacheOperationContext opCtx) { if (opCtx != null) subjId = opCtx.subjectId(); if (subjId == null) subjId = ctx.localNodeId(); return subjId; }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<Map<K, V>> getAllAsync(@Nullable final Collection<? extends K> keys) { A.notNull(keys, "keys"); final boolean statsEnabled = ctx.statisticsEnabled(); final long start = statsEnabled ? System.nanoTime() : 0L; String taskName = ctx.kernalContext().job().currentTaskName(); CacheOperationContext opCtx = ctx.operationContextPerCall(); IgniteInternalFuture<Map<K, V>> fut = getAllAsync( keys, !ctx.config().isReadFromBackup(), /*skip tx*/false, opCtx != null ? opCtx.subjectId() : null, taskName, !(opCtx != null && opCtx.isKeepBinary()), opCtx != null && opCtx.recovery(), /*skip vals*/false, /*need ver*/false); if (ctx.config().getInterceptor() != null) return fut.chain(new CX1<IgniteInternalFuture<Map<K, V>>, Map<K, V>>() { @Override public Map<K, V> applyx(IgniteInternalFuture<Map<K, V>> f) throws IgniteCheckedException { return interceptGet(keys, f.get()); } }); if (statsEnabled) fut.listen(new UpdateGetTimeStatClosure<Map<K, V>>(metrics0(), start)); return fut; }
!ctx.config().isReadFromBackup(), /*skip tx*/false, opCtx != null ? opCtx.subjectId() : null, taskName, !(opCtx != null && opCtx.isKeepBinary()),