Package io.siddhi.core.util.lock
Class LockSynchronizer
- java.lang.Object
-
- io.siddhi.core.util.lock.LockSynchronizer
-
public class LockSynchronizer extends Object
This class maintains aMapofLockWrappers and sync the locks amongLockWrappers if there is a dependency between them.
-
-
Constructor Summary
Constructors Constructor Description LockSynchronizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsync(LockWrapper lockWrapperOne, LockWrapper lockWrapperTwo)Ensure that bothLockWrappers are sharing the same lock and also update the underneath lock of all the dependedLockWrappers of both.
-
-
-
Method Detail
-
sync
public void sync(LockWrapper lockWrapperOne, LockWrapper lockWrapperTwo)
Ensure that bothLockWrappers are sharing the same lock and also update the underneath lock of all the dependedLockWrappers of both.- Parameters:
lockWrapperOne- lock wrapper onelockWrapperTwo- lock wrapper two
-
-