public class CheckpointReadWriteLock extends Object
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Integer> |
CHECKPOINT_LOCK_HOLD_COUNT
Checkpoint lock hold count.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkpointLockIsHeldByThread()
This method works only if the assertion is enabled or it always returns true otherwise.
|
int |
getReadHoldCount() |
boolean |
isWriteLockHeldByCurrentThread() |
void |
readLock()
Gets the checkpoint read lock.
|
void |
readUnlock()
Releases the checkpoint read lock.
|
boolean |
tryReadLock(long timeout,
TimeUnit unit)
Gets the checkpoint read lock.
|
void |
writeLock()
Take the checkpoint write lock.
|
void |
writeUnlock()
Release the checkpoint write lock
|
public static final ThreadLocal<Integer> CHECKPOINT_LOCK_HOLD_COUNT
public void readLock()
IgniteException - If failed.public boolean tryReadLock(long timeout,
TimeUnit unit)
throws InterruptedException
IgniteException - If failed.InterruptedExceptionpublic boolean checkpointLockIsHeldByThread()
true if checkpoint lock is held by current thread.public void readUnlock()
public void writeLock()
public boolean isWriteLockHeldByCurrentThread()
true if current thread hold the write lock.public void writeUnlock()
public int getReadHoldCount()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021