Class LockExpiryConfiguration

java.lang.Object
com.atlassian.beehive.db.LockExpiryConfiguration

public class LockExpiryConfiguration extends Object
  • Field Details

  • Constructor Details

    • LockExpiryConfiguration

      public LockExpiryConfiguration()
  • Method Details

    • getExpiryPeriodDurationSeconds

      public static long getExpiryPeriodDurationSeconds()
      A amount of time since the last confirmation of lock state, during which lock should be treated as fully owned by the reported owner. Defaults to 5, can be overriden by system property beehive.lease.duration.seconds. Should never be smaller than value returned by getRenewalIntervalInSeconds().
      Returns:
      An amount of time since the last confirmation of lock state, during which lock should be treated as fully owned by the reported owner.
    • getRenewalIntervalInSeconds

      public static long getRenewalIntervalInSeconds()
      Time between periodical renewals of lease for all locks owned by this instance. Defaults to 300, Can be overriden by system property beehive.lease.renewal.interval.seconds. Should never be larger than value returned bygetExpiryPeriodDurationSeconds().
      Returns:
      Time between renewals of lease for all locks owned by this instance