Package com.atlassian.beehive.db
Class LockExpiryConfiguration
java.lang.Object
com.atlassian.beehive.db.LockExpiryConfiguration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longA amount of time since the last confirmation of lock state, during which lock should be treated as fully owned by the reported owner.static longTime between periodical renewals of lease for all locks owned by this instance.
-
Field Details
-
RENEWAL_INTERVAL_PERIOD_SECONDS_KEY
- See Also:
-
EXPIRY_PERIOD_DURATION_SECONDS_KEY
- See Also:
-
-
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 propertybeehive.lease.duration.seconds. Should never be smaller than value returned bygetRenewalIntervalInSeconds().- 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
-