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