Package org.apache.hadoop.util
Class InstrumentedReadWriteLock
java.lang.Object
org.apache.hadoop.util.InstrumentedReadWriteLock
- All Implemented Interfaces:
ReadWriteLock
This is a wrap class of a
ReentrantReadWriteLock.
It implements the interface ReadWriteLock, and can be used to
create instrumented ReadLock and WriteLock.-
Constructor Summary
ConstructorsConstructorDescriptionInstrumentedReadWriteLock(boolean fair, String name, org.slf4j.Logger logger, long minLoggingGapMs, long lockWarningThresholdMs) -
Method Summary
-
Constructor Details
-
InstrumentedReadWriteLock
public InstrumentedReadWriteLock(boolean fair, String name, org.slf4j.Logger logger, long minLoggingGapMs, long lockWarningThresholdMs)
-
-
Method Details
-
readLock
- Specified by:
readLockin interfaceReadWriteLock
-
writeLock
- Specified by:
writeLockin interfaceReadWriteLock
-