@Test public void lockingWriteLockOnlyLocksWriteLock() { ReentrantReadWriteLock delegate = new ReentrantReadWriteLock(); ProfiledReentrantReadWriteLock testSubject = new ProfiledReentrantReadWriteLock(delegate, Ticker.systemTicker(), LABEL); testSubject.writeLock().lock(); Assert.assertEquals(0, delegate.getReadHoldCount()); Assert.assertEquals(1, delegate.getWriteHoldCount()); }
@Override public ProfiledLock writeLock() { return writeLock; }
ProfiledReentrantReadWriteLock implements ReadWriteLock { @Override public ProfiledLock writeLock() { return writeLock; } }
ProfiledReentrantReadWriteLock implements ReadWriteLock { @Override public ProfiledLock writeLock() { return writeLock; } ProfiledReentrantReadWriteLock(ReentrantReadWriteLock delegate, Ticker ticker, String label); }
ProfiledReentrantReadWriteLock implements ReadWriteLock { @Override public ProfiledLock writeLock() { return writeLock; } ProfiledReentrantReadWriteLock(ReentrantReadWriteLock delegate, Ticker ticker, String label); @Override ProfiledLock readLock(); @Override ProfiledLock writeLock(); }
ProfiledReentrantReadWriteLock implements ReadWriteLock { @Override public ProfiledLock writeLock() { return writeLock; } ProfiledReentrantReadWriteLock(ReentrantReadWriteLock delegate, Ticker ticker, String label); @Override ProfiledLock readLock(); @Override ProfiledLock writeLock();  }