Module net.javacrumbs.shedlock.core
Package net.javacrumbs.shedlock.util
Class TrackingLockProviderWrapper
java.lang.Object
net.javacrumbs.shedlock.util.TrackingLockProviderWrapper
- All Implemented Interfaces:
LockProvider
Wraps a LockProvider and keeps track of active locks. You can use the getActiveLocks() method
to obtain the list of active locks. Unlocking the returned locks will most likely lead to unpredictable
results - the lock will be released another node can get the lock while the original task is still running.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrackingLockProviderWrapper
-
-
Method Details
-
lock
- Specified by:
lockin interfaceLockProvider- Returns:
- If empty optional has been returned, lock could not be acquired. The lock has to be released by the callee.
-
getActiveLocks
-