Class 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
    • Method Detail

      • getHolderIdentity

        public String getHolderIdentity()
      • getLeaseDuration

        public Duration getLeaseDuration()
      • getLeaderTransitions

        public int getLeaderTransitions()
      • setVersion

        public void setVersion​(Serializable version)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object