public class V1beta1LeaseSpec extends Object
| Constructor and Description |
|---|
V1beta1LeaseSpec() |
| Modifier and Type | Method and Description |
|---|---|
V1beta1LeaseSpec |
acquireTime(org.joda.time.DateTime acquireTime) |
boolean |
equals(Object o) |
org.joda.time.DateTime |
getAcquireTime()
acquireTime is a time when the current lease was acquired.
|
String |
getHolderIdentity()
holderIdentity contains the identity of the holder of a current lease.
|
Integer |
getLeaseDurationSeconds()
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.
|
Integer |
getLeaseTransitions()
leaseTransitions is the number of transitions of a lease between holders.
|
org.joda.time.DateTime |
getRenewTime()
renewTime is a time when the current holder of a lease has last updated the lease.
|
int |
hashCode() |
V1beta1LeaseSpec |
holderIdentity(String holderIdentity) |
V1beta1LeaseSpec |
leaseDurationSeconds(Integer leaseDurationSeconds) |
V1beta1LeaseSpec |
leaseTransitions(Integer leaseTransitions) |
V1beta1LeaseSpec |
renewTime(org.joda.time.DateTime renewTime) |
void |
setAcquireTime(org.joda.time.DateTime acquireTime) |
void |
setHolderIdentity(String holderIdentity) |
void |
setLeaseDurationSeconds(Integer leaseDurationSeconds) |
void |
setLeaseTransitions(Integer leaseTransitions) |
void |
setRenewTime(org.joda.time.DateTime renewTime) |
String |
toString() |
public V1beta1LeaseSpec acquireTime(org.joda.time.DateTime acquireTime)
public org.joda.time.DateTime getAcquireTime()
public void setAcquireTime(org.joda.time.DateTime acquireTime)
public V1beta1LeaseSpec holderIdentity(String holderIdentity)
public String getHolderIdentity()
public void setHolderIdentity(String holderIdentity)
public V1beta1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds)
public Integer getLeaseDurationSeconds()
public void setLeaseDurationSeconds(Integer leaseDurationSeconds)
public V1beta1LeaseSpec leaseTransitions(Integer leaseTransitions)
public Integer getLeaseTransitions()
public void setLeaseTransitions(Integer leaseTransitions)
public V1beta1LeaseSpec renewTime(org.joda.time.DateTime renewTime)
public org.joda.time.DateTime getRenewTime()
public void setRenewTime(org.joda.time.DateTime renewTime)
Copyright © 2019. All rights reserved.