/** {@inheritDoc} */ @Override public void unlockAll(@Nullable Collection keys) throws IgniteCheckedException { delegate.get().unlockAll(transform(keys)); }
/** {@inheritDoc} */ @Override public void unlockAll(@Nullable Collection<? extends K> keys) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { delegate.unlockAll(keys); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public void unlock() { CacheOperationContext prev = gate.enter(opCtx); try { if (lockedThread != Thread.currentThread()) { throw new IllegalStateException("Failed to unlock keys (did current thread acquire lock " + "with this lock instance?)."); } assert cntr > 0; cntr--; if (cntr == 0) lockedThread = null; delegate.unlockAll(keys); } catch (IgniteCheckedException e) { throw new CacheException(e.getMessage(), e); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public void unlockAll(@Nullable Collection<? extends K> keys) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { delegate.unlockAll(keys); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public void unlock() { CacheOperationContext prev = gate.enter(opCtx); try { if (lockedThread != Thread.currentThread()) { throw new IllegalStateException("Failed to unlock keys (did current thread acquire lock " + "with this lock instance?)."); } assert cntr > 0; cntr--; if (cntr == 0) lockedThread = null; delegate.unlockAll(keys); } catch (IgniteCheckedException e) { throw new CacheException(e.getMessage(), e); } finally { gate.leave(prev); } }