java.lang.Object
net.javacrumbs.shedlock.core.LockExtender
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic voidextendActiveLock(Duration lockAtMostFor, Duration lockAtLeastFor) Extends active lock.
-
Method Details
-
extendActiveLock
Extends active lock. Is based on a thread local variable, so it might not work in case of async processing. In case of nested locks, extends the innermost lock.- Throws:
LockExtender.LockCanNotBeExtendedException- when the lock can not be extended due to expired lockLockExtender.NoActiveLockException- when there is no active lock in the thread localUnsupportedOperationException- when the LockProvider does not support lock extension.
-