Class PublishResponse

java.lang.Object
org.elasticsearch.cluster.coordination.PublishResponse
All Implemented Interfaces:
Writeable

public class PublishResponse
extends java.lang.Object
implements Writeable
Response to a PublishRequest, carrying the term and version of the request. Typically wrapped in a PublishWithJoinResponse.
  • Constructor Details

    • PublishResponse

      public PublishResponse​(long term, long version)
    • PublishResponse

      public PublishResponse​(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.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • getTerm

      public long getTerm()
    • getVersion

      public long getVersion()
    • 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