Package io.quarkus.vault.runtime
Class TimeLimitedBase
java.lang.Object
io.quarkus.vault.runtime.TimeLimitedBase
- Direct Known Subclasses:
LeaseBase
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimeLimitedBase(boolean renewable, long leaseDurationSecs) TimeLimitedBase(TimeLimitedBase other) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexpiresSoon(Duration gracePeriod) true if the lease is smaller than the grace period. as long as we are far away fro the ttl, lease durations will be a constant value (e.g. 3600 secs). if we are less than 'lease duration' away from ttl, lease durations will start to reduce to not go over the ttl.info()booleanvoidleaseDurationSanityCheck(String nickname, Duration gracePeriod) booleanshouldExtend(Duration gracePeriod)
-
Field Details
-
renewable
public boolean renewable -
leaseDurationSecs
public long leaseDurationSecs
-
-
Constructor Details
-
TimeLimitedBase
public TimeLimitedBase(boolean renewable, long leaseDurationSecs) -
TimeLimitedBase
-
-
Method Details
-
isExpired
public boolean isExpired() -
shouldExtend
-
getExpireInstant
-
getExpiredDate
-
expiresSoon
true if the lease is smaller than the grace period. as long as we are far away fro the ttl, lease durations will be a constant value (e.g. 3600 secs). if we are less than 'lease duration' away from ttl, lease durations will start to reduce to not go over the ttl.- Parameters:
gracePeriod-- Returns:
-
info
-
leaseDurationSanityCheck
-