125126127128129130131132133134135
}else{ lock.readLock().release(); } }else{ if(op == 'A'){ lock.writeLock().acquire(); }else{ lock.writeLock().release(); } } }catch(Exception e){
127128129130131132133134135136137
} }else{ if(op == 'A'){ lock.writeLock().acquire(); }else{ lock.writeLock().release(); } } }catch(Exception e){ logger.error("Could not {} the specified {} lock",type,op); return false;