private void writeUnLockAll() { for (int i = 0; i < this.locks.length; i++) { ManagerUtil.monitorExit(locks[i]); } }
private void readUnLock(Object lock) { if(readLockLevel != LockLevel.NIL_LOCK_LEVEL) { ManagerUtil.monitorExit(lock); } } }
private void writeUnLockAll() { for (Object lock : this.locks) { ManagerUtil.monitorExit(lock, writeLockLevel); } }
private void writeUnLockAll() { for (Object lock : this.locks) { ManagerUtil.monitorExit(lock, writeLockLevel); } }
private void writeUnLockAll() { for (Object lock : this.locks) { ManagerUtil.monitorExit(lock, writeLockLevel); } }
private void readUnLock(Object lock) { if (readLockLevel != Util.NO_LOCK_LEVEL) ManagerUtil.monitorExit(lock, readLockLevel); } }
public void unlock() { if (CacheConfigFactory.DSO_ACTIVE) { ManagerUtil.monitorExit(this, Manager.LOCK_TYPE_WRITE); return; } synchronized (this) { if (!locked) { throw new IllegalStateException("not locked"); } if (Thread.currentThread() != owner) { throw new IllegalStateException("not owning thread"); } locked = false; owner = null; } }
public void unlock() { if (Terracotta.isActive()) { ManagerUtil.monitorExit(this, Manager.LOCK_TYPE_WRITE); return; } synchronized (this) { if (!locked) { throw new IllegalStateException("not locked"); } if (Thread.currentThread() != owner) { throw new IllegalStateException("not owning thread"); } locked = false; owner = null; } }
public void unlock() { if (ManagerUtil.isManaged(lock)) { ManagerUtil.monitorExit(lock, lockLevel); lock.unlocked(); } }
public void unlock() { if (ManagerUtil.isManaged(lock)) { ManagerUtil.monitorExit(lock, lockLevel); } }
public void unlock() { if (Terracotta.isActive()) { ManagerUtil.monitorExit(this, Manager.LOCK_TYPE_WRITE); return; } synchronized (this) { if (!locked) { throw new IllegalStateException("not locked"); } if (Thread.currentThread() != owner) { throw new IllegalStateException("not owning thread"); } locked = false; owner = null; } }
public void unlock() { if (Terracotta.isActive()) { ManagerUtil.monitorExit(this, Manager.LOCK_TYPE_WRITE); return; } synchronized (this) { if (!locked) { throw new IllegalStateException("not locked"); } if (Thread.currentThread() != owner) { throw new IllegalStateException("not owning thread"); } locked = false; owner = null; } }
public void unlock() { if (ManagerUtil.isManaged(lock)) { ManagerUtil.monitorExit(lock, lockLevel); lock.unlocked(); } }
protected void __remove(K key) { String lockId = ls.getLock(key); ManagerUtil.monitorEnter(this, Manager.LOCK_TYPE_READ); ManagerUtil.monitorEnter(lockId, Manager.LOCK_TYPE_WRITE); try { super.__remove(key); }finally { ManagerUtil.monitorExit(lockId, Manager.LOCK_TYPE_WRITE); ManagerUtil.monitorExit(this, Manager.LOCK_TYPE_READ); } }
public final void setMaxTTLMillis(Object key, long maxTTLMillis) { Object lock = getLockObject(key); ManagerUtil.monitorEnter(lock, writeLockLevel); try { memoryStore.setMaxTTLMillis(key, maxTTLMillis); } finally { ManagerUtil.monitorExit(lock, writeLockLevel); } }
public final void setMaxIdleTimeMillis(Object key, long maxIdleTimeMillis) { Object lock = getLockObject(key); ManagerUtil.monitorEnter(lock, writeLockLevel); try { memoryStore.setMaxIdleTimeMillis(key, maxIdleTimeMillis); } finally { ManagerUtil.monitorExit(lock, writeLockLevel); } }
public final void setMaxTTLMillis(Object key, long maxTTLMillis) { Object lock = getLockObject(key); ManagerUtil.monitorEnter(lock, writeLockLevel); try { memoryStore.setMaxTTLMillis(key, maxTTLMillis); } finally { ManagerUtil.monitorExit(lock); } }
public final void setMaxTTLMillis(Object key, long maxTTLMillis) { Object lock = getLockObject(key); ManagerUtil.monitorEnter(lock, writeLockLevel); try { memoryStore.setMaxTTLMillis(key, maxTTLMillis); } finally { ManagerUtil.monitorExit(lock, writeLockLevel); } }
public final void setMaxTTLMillis(Object key, long maxTTLMillis) { Object lock = getLockObject(key); ManagerUtil.monitorEnter(lock, writeLockLevel); try { memoryStore.setMaxTTLMillis(key, maxTTLMillis); } finally { ManagerUtil.monitorExit(lock, writeLockLevel); } }
public final void setMaxIdleTimeMillis(Object key, long maxIdleTimeMillis) { Object lock = getLockObject(key); ManagerUtil.monitorEnter(lock, writeLockLevel); try { memoryStore.setMaxIdleTimeMillis(key, maxIdleTimeMillis); } finally { ManagerUtil.monitorExit(lock); } }