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
Modifier and Type Method Description booleanequals(Object o)ZonedDateTimegetAcquireTime()StringgetHolderIdentity()intgetLeaderTransitions()DurationgetLeaseDuration()ZonedDateTimegetRenewTime()SerializablegetVersion()inthashCode()voidsetVersion(Serializable version)
-
Constructor Details
-
LeaderElectionRecord
public LeaderElectionRecord(String holderIdentity, Duration leaseDuration, ZonedDateTime acquireTime, ZonedDateTime renewTime, int leaderTransitions)
-
-
Method Details
-
getHolderIdentity
-
getLeaseDuration
-
getAcquireTime
-
getRenewTime
-
getLeaderTransitions
public int getLeaderTransitions() -
getVersion
-
setVersion
-
equals
-
hashCode
public int hashCode()
-