Class LockConfiguration


  • public class LockConfiguration
    extends Object
    Lock configuration.
    • Constructor Detail

      • LockConfiguration

        public LockConfiguration​(@NotNull
                                 @NotNull String name,
                                 @NotNull
                                 @NotNull Instant lockAtMostUntil)
      • LockConfiguration

        public LockConfiguration​(@NotNull
                                 @NotNull String name,
                                 @NotNull
                                 @NotNull Instant lockAtMostUntil,
                                 @NotNull
                                 @NotNull Instant lockAtLeastUntil)
    • Method Detail

      • getName

        public String getName()
      • getLockAtMostUntil

        public Instant getLockAtMostUntil()
      • getLockAtLeastUntil

        public Instant getLockAtLeastUntil()
      • getUnlockTime

        public Instant getUnlockTime()
        Returns either now or lockAtLeastUntil whichever is later.