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
ConstructorDescriptionPublishResponse
(long term, long version) PublishResponse
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
-
Constructor Details
-
PublishResponse
public PublishResponse(long term, long version) -
PublishResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Throws:
IOException
-
getTerm
public long getTerm() -
getVersion
public long getVersion() -
toString
-
equals
-
hashCode
public int hashCode()
-