if (!isLockOwner(lockName)) { if(log.isDebugEnabled()) { log.debug(
/** * Release the lock on the identified resource if it is held by the calling * thread. */ public synchronized void releaseLock(String lockName) { lockName = lockName.intern(); if (isLockOwner(lockName)) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' retuned by: " + Thread.currentThread().getName()); } getThreadLocks().remove(lockName); locks.remove(lockName); this.notifyAll(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to retun by: " + Thread.currentThread().getName() + " -- but not owner!", new Exception("stack-trace of wrongful returner")); } }
/** * Release the lock on the identified resource if it is held by the calling * thread. */ public synchronized void releaseLock(String lockName) { lockName = lockName.intern(); if (isLockOwner(lockName)) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' retuned by: " + Thread.currentThread().getName()); } getThreadLocks().remove(lockName); locks.remove(lockName); this.notifyAll(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to retun by: " + Thread.currentThread().getName() + " -- but not owner!", new Exception("stack-trace of wrongful returner")); } }
if (!isLockOwner(lockName)) { if(log.isDebugEnabled()) { log.debug(
/** * Release the lock on the identified resource if it is held by the calling * thread. */ public synchronized void releaseLock(Connection conn, String lockName) { lockName = lockName.intern(); if (isLockOwner(conn, lockName)) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' retuned by: " + Thread.currentThread().getName()); } getThreadLocks().remove(lockName); locks.remove(lockName); this.notifyAll(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to retun by: " + Thread.currentThread().getName() + " -- but not owner!", new Exception("stack-trace of wrongful returner")); } }
if (!isLockOwner(conn, lockName)) { if(log.isDebugEnabled()) { log.debug(
/** * Release the lock on the identified resource if it is held by the calling * thread. */ public synchronized void releaseLock(Connection conn, String lockName) { lockName = lockName.intern(); if (isLockOwner(conn, lockName)) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' retuned by: " + Thread.currentThread().getName()); } getThreadLocks().remove(lockName); locks.remove(lockName); this.notifyAll(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to retun by: " + Thread.currentThread().getName() + " -- but not owner!", new Exception("stack-trace of wrongful returner")); } }
if (!isLockOwner(conn, lockName)) { if(log.isDebugEnabled()) { log.debug(