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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors Constructor Description PublishResponse(long term, long version)PublishResponse(StreamInput in) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)longgetTerm()longgetVersion()inthashCode()java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
PublishResponse
public PublishResponse(long term, long version) -
PublishResponse
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
getTerm
public long getTerm() -
getVersion
public long getVersion() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-