LockType - the type of lockpublic class LockManager<LockType> extends Object
| Constructor and Description |
|---|
LockManager(LockPolicy<LockType> p,
LockPreChecker<LockType> pc,
WaitQueueFactory<LockType> factory)
Creates a new lock manager.
|
| Modifier and Type | Method and Description |
|---|---|
LockPolicy<LockType> |
policy()
Obtains the current lock policy.
|
LockPreChecker<LockType> |
pre_checker()
Obtains the currently defined lock pre-checker.
|
WaitQueueFactory<LockType> |
wait_queue_factory()
Obtains the wait queue factory.
|
public LockManager(LockPolicy<LockType> p, LockPreChecker<LockType> pc, WaitQueueFactory<LockType> factory)
p - the lock policypc - the pre-checker to use; if null, the default
pre-checker is usedfactory - the wait factory to set; if null, the
default factory is usedpublic WaitQueueFactory<LockType> wait_queue_factory()
public LockPreChecker<LockType> pre_checker()
public LockPolicy<LockType> policy()
Copyright © 2015. All rights reserved.