@Test public void timeWriteLockSpentLockedIsRecorded() { Ticker ticker = createMock(Ticker.class); ProfiledLock testSubject = new ProfiledReentrantReadWriteLock(new ReentrantReadWriteLock(), ticker, LABEL).writeLock(); timeSpentLockedIsRecorded(ticker, testSubject); }
@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();  }