public class LockSynchronizer extends Object
Map of LockWrappers and sync the locks among
LockWrappers 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
LockWrappers are sharing the same lock and also update the underneath
lock of all the depended LockWrappers of both. |
public void sync(LockWrapper lockWrapperOne, LockWrapper lockWrapperTwo)
LockWrappers are sharing the same lock and also update the underneath
lock of all the depended LockWrappers of both.lockWrapperOne - lock wrapper onelockWrapperTwo - lock wrapper twoCopyright © 2018 WSO2. All rights reserved.