public abstract class AbstractReadWriteLockingStrategy extends Object implements ReadWriteLockingStrategy
Constructor and Description |
---|
AbstractReadWriteLockingStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadLocked(long state) |
<T> boolean |
tryLock(NativeAtomicAccess<T> access,
T t,
long offset) |
<T> void |
unlock(NativeAtomicAccess<T> access,
T t,
long offset) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
downgradeWriteToReadLock, isWriteLocked, readLockCount, readUnlock, tryReadLock, tryUpgradeReadToWriteLock, tryWriteLock, writeUnlock
getState, isLocked, lockCount, reset, resetState, sizeInBytes, toString
public <T> boolean tryLock(NativeAtomicAccess<T> access, T t, long offset)
tryLock
in interface LockingStrategy
public <T> void unlock(NativeAtomicAccess<T> access, T t, long offset)
unlock
in interface LockingStrategy
public boolean isReadLocked(long state)
isReadLocked
in interface ReadWriteLockingStrategy
Copyright © 2019. All rights reserved.