@Test public void createsRegularReadWriteLockIfDebugIsDisabled() { Configuration config = createNiceMock(Configuration.class); expect(config.isServerLocksProfilingEnabled()).andReturn(false); replayAll(); LockFactory factory = new LockFactory(config); ReadWriteLock lock = factory.newReadWriteLock(); Assert.assertTrue(lock instanceof ReentrantReadWriteLock); verifyAll(); }
public ReadWriteLock newReadWriteLock() { return newReadWriteLock(getDefaultPrefix()); }
LockFactory { public ReadWriteLock newReadWriteLock() { return newReadWriteLock(getDefaultPrefix()); } }
LockFactory { public ReadWriteLock newReadWriteLock() { return newReadWriteLock(getDefaultPrefix()); } @Inject  LockFactory(Configuration config); }
LockFactory { public ReadWriteLock newReadWriteLock() { return newReadWriteLock(getDefaultPrefix()); } @Inject  LockFactory(Configuration config); Lock newLock(); Lock newLock(String label); ReadWriteLock newReadWriteLock(); ReadWriteLock newReadWriteLock(String label); void debugDump(StringBuilder sb); }
LockFactory { public ReadWriteLock newReadWriteLock() { return newReadWriteLock(getDefaultPrefix()); } @Inject  LockFactory(Configuration config); Lock newLock(); Lock newLock(String label); ReadWriteLock newReadWriteLock(); ReadWriteLock newReadWriteLock(String label); void debugDump(StringBuilder sb);  }