Class PreVoteResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted

public class PreVoteResponse extends TransportResponse
  • Constructor Details

    • PreVoteResponse

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

      public PreVoteResponse(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

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

      public long getCurrentTerm()
    • getLastAcceptedTerm

      public long getLastAcceptedTerm()
    • getLastAcceptedVersion

      public long getLastAcceptedVersion()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object