Class TrackingLockProviderWrapper

java.lang.Object
net.javacrumbs.shedlock.util.TrackingLockProviderWrapper
All Implemented Interfaces:
LockProvider

public class TrackingLockProviderWrapper extends Object implements 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 Details

    • TrackingLockProviderWrapper

      public TrackingLockProviderWrapper(LockProvider wrapped)
  • Method Details