public class LockSynchronizer extends Object
Map
of LockWrapper
s and sync the locks among
LockWrapper
s if there is a dependency between them.Constructor and Description |
---|
LockSynchronizer() |
Modifier and Type | Method and Description |
---|---|
void |
sync(LockWrapper lockWrapperOne,
LockWrapper lockWrapperTwo)
Ensure that both
LockWrapper s are sharing the same lock and also update the underneath
lock of all the depended LockWrapper s of both. |
public void sync(LockWrapper lockWrapperOne, LockWrapper lockWrapperTwo)
LockWrapper
s are sharing the same lock and also update the underneath
lock of all the depended LockWrapper
s of both.lockWrapperOne
- lock wrapper onelockWrapperTwo
- lock wrapper twoCopyright © 2019. All rights reserved.