Package net.javacrumbs.shedlock.core
Class LockConfiguration
java.lang.Object
net.javacrumbs.shedlock.core.LockConfiguration
public class LockConfiguration extends Object
Lock configuration.
-
Constructor Summary
Constructors Constructor Description LockConfiguration(String name, Duration lockAtMostFor, Duration lockAtLeastFor)
Deprecated.LockConfiguration(String name, Instant lockAtMostUntil)
Deprecated.LockConfiguration(String name, Instant lockAtMostUntil, Instant lockAtLeastUntil)
Deprecated.LockConfiguration(Instant createdAt, String name, Duration lockAtMostFor, Duration lockAtLeastFor)
Creates LockConfiguration. -
Method Summary
Modifier and Type Method Description Duration
getLockAtLeastFor()
Instant
getLockAtLeastUntil()
Duration
getLockAtMostFor()
Instant
getLockAtMostUntil()
String
getName()
Instant
getUnlockTime()
Returns either now or lockAtLeastUntil whichever is later.String
toString()
-
Constructor Details
-
LockConfiguration
Deprecated. -
LockConfiguration
Deprecated. -
LockConfiguration
@Deprecated public LockConfiguration(String name, Instant lockAtMostUntil, Instant lockAtLeastUntil)Deprecated. -
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