186187188189190191192193194195196
LockType[] types = LockType.values(); for (int i = 0; i < size; ++i) { Member member = Objects.readObject(input); Map<LockDescriptor, Lock> map = new HashMap<LockDescriptor, Lock>(); int locks = input.readInt();
258259260261262263264265266267268
{ boolean locked = false; while (!locked) { Member coordinator = this.dispatcher.getCoordinator(); if (this.dispatcher.getLocal().equals(coordinator)) { this.lock.lock();
295296297298299300301302303304305
{ boolean locked = false; while (!locked) { Member coordinator = this.dispatcher.getCoordinator(); if (this.dispatcher.getLocal().equals(coordinator)) { this.lock.lockInterruptibly();
335336337338339340341342343344345
@Override public boolean tryLock() { boolean locked = false; Member coordinator = this.dispatcher.getCoordinator(); if (this.dispatcher.getLocal().equals(coordinator)) { if (this.lock.tryLock()) {
367368369370371372373374375376377
@Override public boolean tryLock(long time, TimeUnit unit) throws InterruptedException { boolean locked = false; Member coordinator = this.dispatcher.getCoordinator(); if (this.dispatcher.getLocal().equals(coordinator)) { if (this.lock.tryLock(time, unit)) {
422423424425426427428429430431432
} @Override public void unlock() { Member coordinator = this.dispatcher.getCoordinator(); if (this.dispatcher.getLocal().equals(coordinator)) { this.unlockMembers(coordinator);