Package org.apache.ignite.internal.util
Class ReentrantReadWriteLockWithTracking.ReadLockWithTracking
- java.lang.Object
-
- java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
-
- org.apache.ignite.internal.util.ReentrantReadWriteLockWithTracking.ReadLockWithTracking
-
- All Implemented Interfaces:
Serializable,Lock
- Enclosing class:
- ReentrantReadWriteLockWithTracking
public static class ReentrantReadWriteLockWithTracking.ReadLockWithTracking extends ReentrantReadWriteLock.ReadLock
Tracks long rlock holders.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedReadLockWithTracking(ReentrantReadWriteLock lock, @Nullable IgniteLogger log, long readLockThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlock()voidlockInterruptibly()booleantryLock()booleantryLock(long timeout, TimeUnit unit)voidunlock()-
Methods inherited from class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
newCondition, toString
-
-
-
-
Constructor Detail
-
ReadLockWithTracking
protected ReadLockWithTracking(ReentrantReadWriteLock lock, @Nullable @Nullable IgniteLogger log, long readLockThreshold)
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lockin interfaceLock- Overrides:
lockin classReentrantReadWriteLock.ReadLock
-
lockInterruptibly
public void lockInterruptibly() throws InterruptedException- Specified by:
lockInterruptiblyin interfaceLock- Overrides:
lockInterruptiblyin classReentrantReadWriteLock.ReadLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock()
- Specified by:
tryLockin interfaceLock- Overrides:
tryLockin classReentrantReadWriteLock.ReadLock
-
tryLock
public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException- Specified by:
tryLockin interfaceLock- Overrides:
tryLockin classReentrantReadWriteLock.ReadLock- Throws:
InterruptedException
-
unlock
public void unlock()
- Specified by:
unlockin interfaceLock- Overrides:
unlockin classReentrantReadWriteLock.ReadLock
-
-