Package org.cdk8s.plus24.k8s
Interface LeaseSpec
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LeaseSpec.Jsii$Proxy
@Generated(value="jsii-pacmak/1.80.0 (build bce6a1d)", date="2023-05-05T16:22:34.155Z") @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 class
LeaseSpec.Builder
A builder forLeaseSpec
static class
LeaseSpec.Jsii$Proxy
An implementation forLeaseSpec
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static LeaseSpec.Builder
builder()
default Instant
getAcquireTime()
acquireTime is a time when the current lease was acquired.default String
getHolderIdentity()
holderIdentity contains the identity of the holder of a current lease.default Number
getLeaseDurationSeconds()
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.default Number
getLeaseTransitions()
leaseTransitions is the number of transitions of a lease between holders.default Instant
getRenewTime()
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.Builder
ofLeaseSpec
-
-