@Test(timeout = 10000) public void lockEdge() throws Exception { edgeLockTest(LockMode.WRITE, LockMode.READ, true); edgeLockTest(LockMode.READ, LockMode.WRITE, true); edgeLockTest(LockMode.WRITE, LockMode.WRITE, true); edgeLockTest(LockMode.READ, LockMode.READ, false); }
public RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock) { return mEdgeLocks.get(edge, mode, useTryLock); }
InodeLockManager implements Closeable { public RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock) { return mEdgeLocks.get(edge, mode, useTryLock); } }
InodeLockManager implements Closeable { public RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock) { return mEdgeLocks.get(edge, mode, useTryLock); }  }
InodeLockManager implements Closeable { public RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock) { return mEdgeLocks.get(edge, mode, useTryLock); }  @VisibleForTesting void assertAllLocksReleased(); RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockInode(Long inodeId, LockMode mode); RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockEdge(Edge edge, LockMode mode); Optional<Scoped> tryAcquirePersistingLock(long inodeId); LockResource lockUpdate(long inodeId); @Override void close(); }
InodeLockManager implements Closeable { public RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock) { return mEdgeLocks.get(edge, mode, useTryLock); }  @VisibleForTesting void assertAllLocksReleased(); RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockInode(Long inodeId, LockMode mode); RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockEdge(Edge edge, LockMode mode); Optional<Scoped> tryAcquirePersistingLock(long inodeId); LockResource lockUpdate(long inodeId); @Override void close();  }