Class PublishResponse
java.lang.Object
org.elasticsearch.cluster.coordination.PublishResponse
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getTerm()
long
int
hashCode()
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Constructor Details
-
PublishResponse
public PublishResponse(long term, long version) -
PublishResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getTerm
public long getTerm() -
getVersion
public long getVersion() -
toString
-
equals
-
hashCode
public int hashCode()
-