Class ApplyCommitRequest

  • All Implemented Interfaces:
    Streamable, 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)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • toString

        public java.lang.String toString()
      • getTerm

        public long getTerm()
      • getVersion

        public long getVersion()
      • equals

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

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