Package org.cdk8s.plus25.k8s
Interface LeaseSpec
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LeaseSpec.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.728Z") @Stability(Stable) public interface LeaseSpec extends software.amazon.jsii.JsiiSerializable
LeaseSpec is a specification of a Lease.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLeaseSpec.BuilderA builder forLeaseSpecstatic classLeaseSpec.Jsii$ProxyAn implementation forLeaseSpec
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static LeaseSpec.Builderbuilder()default InstantgetAcquireTime()acquireTime is a time when the current lease was acquired.default StringgetHolderIdentity()holderIdentity contains the identity of the holder of a current lease.default NumbergetLeaseDurationSeconds()leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.default NumbergetLeaseTransitions()leaseTransitions is the number of transitions of a lease between holders.default InstantgetRenewTime()renewTime is a time when the current holder of a lease has last updated the lease.
-
-
-
Method Detail
-
getAcquireTime
@Stability(Stable) @Nullable default Instant getAcquireTime()
acquireTime is a time when the current lease was acquired.
-
getHolderIdentity
@Stability(Stable) @Nullable default String getHolderIdentity()
holderIdentity contains the identity of the holder of a current lease.
-
getLeaseDurationSeconds
@Stability(Stable) @Nullable default Number getLeaseDurationSeconds()
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.This is measure against time of last observed RenewTime.
-
getLeaseTransitions
@Stability(Stable) @Nullable default Number getLeaseTransitions()
leaseTransitions is the number of transitions of a lease between holders.
-
getRenewTime
@Stability(Stable) @Nullable default Instant getRenewTime()
renewTime is a time when the current holder of a lease has last updated the lease.
-
builder
@Stability(Stable) static LeaseSpec.Builder builder()
- Returns:
- a
LeaseSpec.BuilderofLeaseSpec
-
-