Class LockConfiguration
java.lang.Object
net.javacrumbs.shedlock.core.LockConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionLockConfiguration(Instant createdAt, String name, Duration lockAtMostFor, Duration lockAtLeastFor) Creates LockConfiguration. -
Method Summary
-
Constructor Details
-
LockConfiguration
public LockConfiguration(Instant createdAt, String name, Duration lockAtMostFor, Duration lockAtLeastFor) Creates LockConfiguration. There are two types of lock providers. One that uses "db time" which requires relative values of lockAtMostFor and lockAtLeastFor (currently it's only JdbcTemplateLockProvider). Second type of lock provider uses absolute time calculated from `createdAt`.- Parameters:
createdAt-name-lockAtMostFor-lockAtLeastFor-
-
-
Method Details
-
getName
-
getLockAtMostUntil
-
getLockAtLeastUntil
-
getUnlockTime
Returns either now or lockAtLeastUntil whichever is later. -
getLockAtLeastFor
-
getLockAtMostFor
-
toString
-