Class PublishResponse

java.lang.Object
org.opensearch.cluster.coordination.PublishResponse
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable

public class PublishResponse extends Object implements org.opensearch.core.common.io.stream.Writeable
Response to a PublishRequest, carrying the term and version of the request. Typically wrapped in a PublishWithJoinResponse.
Opensearch.internal:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
  • Constructor Summary

    Constructors
    Constructor
    Description
    PublishResponse(long term, long version)
     
    PublishResponse(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
     
    long
     
    int
     
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PublishResponse

      public PublishResponse(long term, long version)
    • PublishResponse

      public PublishResponse(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • getTerm

      public long getTerm()
    • getVersion

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