public class LockFactory extends Object
Constructor and Description |
---|
LockFactory(Configuration config) |
Modifier and Type | Method and Description |
---|---|
void |
debugDump(StringBuilder sb)
If lock profiling is enabled, append summary statistics about lock usage to
sb |
Lock |
newLock() |
Lock |
newLock(String label) |
ReadWriteLock |
newReadWriteLock() |
ReadWriteLock |
newReadWriteLock(String label) |
@Inject public LockFactory(Configuration config)
public Lock newLock()
public Lock newLock(String label)
label
to identify it in log messagespublic ReadWriteLock newReadWriteLock()
public ReadWriteLock newReadWriteLock(String label)
label
to identify it in log messagespublic void debugDump(StringBuilder sb)
sb
sb
- the buffer to append the statistics toCopyright © 2022 Apache Software Foundation. All rights reserved.