/** {@inheritDoc} */ @Override public boolean lockAll(@Nullable Collection keys, long timeout) throws IgniteCheckedException { return delegate.get().lockAll(transform(keys), timeout); }
/** {@inheritDoc} */ @Override public boolean lockAll(@Nullable Collection<? extends K> keys, long timeout) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.lockAll(keys, timeout); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public void lock() { CacheOperationContext prev = gate.enter(opCtx); try { checkTx(); delegate.lockAll(keys, 0); incrementLockCounter(); } catch (IgniteCheckedException e) { throw new CacheException(e.getMessage(), e); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public boolean tryLock() { CacheOperationContext prev = gate.enter(opCtx); try { checkTx(); boolean res = delegate.lockAll(keys, -1); if (res) incrementLockCounter(); return res; } catch (IgniteCheckedException e) { throw new CacheException(e.getMessage(), e); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public boolean lockAll(@Nullable Collection<? extends K> keys, long timeout) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.lockAll(keys, timeout); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public void lock() { CacheOperationContext prev = gate.enter(opCtx); try { checkTx(); delegate.lockAll(keys, 0); incrementLockCounter(); } catch (IgniteCheckedException e) { throw new CacheException(e.getMessage(), e); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public boolean tryLock() { CacheOperationContext prev = gate.enter(opCtx); try { checkTx(); boolean res = delegate.lockAll(keys, -1); if (res) incrementLockCounter(); return res; } catch (IgniteCheckedException e) { throw new CacheException(e.getMessage(), e); } finally { gate.leave(prev); } }