LockType - the type of lockpublic class NullLockPreChecker<LockType> extends Object implements LockPreChecker<LockType>
| Constructor and Description |
|---|
NullLockPreChecker()
Creates a new pre-checker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
locked(LockGrant<LockType> g)
A lock has been granted.
|
void |
pre_check_wait(LockRequest<LockType> r,
Target<LockType> t)
Checks if we can wait for a lock.
|
void |
unlocked(LockGrant<LockType> g)
A lock has been released.
|
public void pre_check_wait(LockRequest<LockType> r, Target<LockType> t)
LockPreCheckerpre_check_wait in interface LockPreChecker<LockType>r - the lock requestt - the lock targetpublic void locked(LockGrant<LockType> g)
LockManagerListenerlocked in interface LockManagerListener<LockType>g - the granted lockpublic void unlocked(LockGrant<LockType> g)
LockManagerListenerunlocked in interface LockManagerListener<LockType>g - the released lockCopyright © 2015. All rights reserved.