Class PreVoteResponse

java.lang.Object
All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted

public class PreVoteResponse
extends TransportResponse
  • Constructor Details

    • PreVoteResponse

      public PreVoteResponse​(long currentTerm, long lastAcceptedTerm, long lastAcceptedVersion)
    • PreVoteResponse

      public PreVoteResponse​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Throws:
      java.io.IOException
    • getCurrentTerm

      public long getCurrentTerm()
    • getLastAcceptedTerm

      public long getLastAcceptedTerm()
    • getLastAcceptedVersion

      public long getLastAcceptedVersion()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • 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