Class LeaseSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.coordination.v1beta1.LeaseSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class LeaseSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
LeaseSpec is a specification of a Lease.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LeaseSpec.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LeaseSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.time.OffsetDateTime
getAcquireTime()
java.lang.String
getHolderIdentity()
holderIdentity contains the identity of the holder of a current lease.java.lang.Number
getLeaseDurationSeconds()
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.java.lang.Number
getLeaseTransitions()
leaseTransitions is the number of transitions of a lease between holders.java.time.OffsetDateTime
getRenewTime()
int
hashCode()
void
setAcquireTime(java.time.OffsetDateTime acquireTime)
void
setHolderIdentity(java.lang.String holderIdentity)
holderIdentity contains the identity of the holder of a current lease.void
setLeaseDurationSeconds(java.lang.Number leaseDurationSeconds)
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.void
setLeaseTransitions(java.lang.Number leaseTransitions)
leaseTransitions is the number of transitions of a lease between holders.void
setRenewTime(java.time.OffsetDateTime renewTime)
LeaseSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static LeaseSpec.Builder builder()
-
toBuilder
public LeaseSpec.Builder toBuilder()
-
getAcquireTime
public java.time.OffsetDateTime getAcquireTime()
-
getHolderIdentity
public java.lang.String getHolderIdentity()
holderIdentity contains the identity of the holder of a current lease.
-
getLeaseDurationSeconds
public java.lang.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
public java.lang.Number getLeaseTransitions()
leaseTransitions is the number of transitions of a lease between holders.
-
getRenewTime
public java.time.OffsetDateTime getRenewTime()
-
setAcquireTime
public void setAcquireTime(java.time.OffsetDateTime acquireTime)
-
setHolderIdentity
public void setHolderIdentity(java.lang.String holderIdentity)
holderIdentity contains the identity of the holder of a current lease.
-
setLeaseDurationSeconds
public void setLeaseDurationSeconds(java.lang.Number leaseDurationSeconds)
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.
-
setLeaseTransitions
public void setLeaseTransitions(java.lang.Number leaseTransitions)
leaseTransitions is the number of transitions of a lease between holders.
-
setRenewTime
public void setRenewTime(java.time.OffsetDateTime renewTime)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-