Class LeaderElectionRecord
- java.lang.Object
-
- io.fabric8.kubernetes.client.extended.leaderelection.resourcelock.LeaderElectionRecord
-
public class LeaderElectionRecord extends Object
LeaderElectionRecord is the record that is stored in the leader election annotation. This information should be used for observational purposes only and could be replaced with a random string (e.g. UUID) with only slight modification of this code.- See Also:
- leaderelection/resourcelock/interface.go
-
-
Constructor Summary
Constructors Constructor Description LeaderElectionRecord(String holderIdentity, Duration leaseDuration, ZonedDateTime acquireTime, ZonedDateTime renewTime, int leaderTransitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ZonedDateTime
getAcquireTime()
String
getHolderIdentity()
int
getLeaderTransitions()
Duration
getLeaseDuration()
ZonedDateTime
getRenewTime()
Serializable
getVersion()
int
hashCode()
void
setVersion(Serializable version)
-
-
-
Constructor Detail
-
LeaderElectionRecord
public LeaderElectionRecord(String holderIdentity, Duration leaseDuration, ZonedDateTime acquireTime, ZonedDateTime renewTime, int leaderTransitions)
-
-
Method Detail
-
getHolderIdentity
public String getHolderIdentity()
-
getLeaseDuration
public Duration getLeaseDuration()
-
getAcquireTime
public ZonedDateTime getAcquireTime()
-
getRenewTime
public ZonedDateTime getRenewTime()
-
getLeaderTransitions
public int getLeaderTransitions()
-
getVersion
public Serializable getVersion()
-
setVersion
public void setVersion(Serializable version)
-
-