Package net.javacrumbs.shedlock.core
Class LockAssert
java.lang.Object
net.javacrumbs.shedlock.core.LockAssert
public final class LockAssert extends Object
Asserts lock presence. The Spring ecosystem is so complicated, so one can not be sure that the lock is applied. This class
makes sure that the task is indeed locked.
If you use AOP with Kotlin, it does not have to work due to final methods, if you use TaskExecutor wrapper, it can be broken by Sleuth,.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLockAssert.TestHelper -
Method Summary
Modifier and Type Method Description static voidassertLocked()Throws an exception if the lock is not present.
-
Method Details
-
assertLocked
public static void assertLocked()Throws an exception if the lock is not present.
-