Package com.gigaspaces.attribute_store
Class SimulatedSharedLockProvider
java.lang.Object
com.gigaspaces.attribute_store.SimulatedSharedLockProvider
- All Implemented Interfaces:
SharedLockProvider
A simulation of a shared lock, which is not really shared...
Used to simulate a shared lock when zookeeper is not available.
- Since:
- 15.5
- Author:
- Niv Ingberg
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimulatedSharedLockProvider
public SimulatedSharedLockProvider()
-
-
Method Details
-
getInstance
-
acquire
public SharedLock acquire(String key, long timeout, TimeUnit timeunit, boolean isPuLock) throws TimeoutException, InterruptedException - Specified by:
acquirein interfaceSharedLockProvider- Throws:
TimeoutExceptionInterruptedException
-