Class ApplyCommitRequest

  • All Implemented Interfaces:
    Writeable, TaskAwareRequest

    public class ApplyCommitRequest
    extends TransportRequest
    A master node sends this request to its peers to inform them that it could commit the cluster state with the given term and version. Peers that have accepted the given cluster state will then consider it as committed and proceed to apply the state locally.
    • Field Detail

      • term

        protected final long term
      • version

        protected final long version
    • Constructor Detail

      • ApplyCommitRequest

        public ApplyCommitRequest​(DiscoveryNode sourceNode,
                                  long term,
                                  long version)
      • ApplyCommitRequest

        public ApplyCommitRequest​(StreamInput in)
    • Method Detail

      • toString

        public java.lang.String toString()
      • getTerm

        public long getTerm()
      • getVersion

        public long getVersion()
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object