@Override public void release() { if(rLock.isHeldByCurrentThread()){ rLock.unlockAsync(); } } public String getKey(){
@Override public void release() { if(rLock.isHeldByCurrentThread()){ rLock.unlockAsync(); } } }
@Override public void release() { if(rLock.writeLock().isHeldByCurrentThread()){ rLock.writeLock().unlockAsync(); } } }
@Override public void release() { if(rLock.readLock().isHeldByCurrentThread()){ rLock.readLock().unlockAsync(); } } }