Package net.javacrumbs.shedlock.core
Class LockConfiguration
java.lang.Object
net.javacrumbs.shedlock.core.LockConfiguration
Lock configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionLockConfiguration(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
-
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
LockConfiguration(Instant, String, Duration, Duration)