Class PublishResponse
- java.lang.Object
-
- org.elasticsearch.cluster.coordination.PublishResponse
-
- All Implemented Interfaces:
Writeable
public class PublishResponse extends Object implements Writeable
Response to aPublishRequest, carrying the term and version of the request. Typically wrapped in aPublishWithJoinResponse.
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetTerm()longgetVersion()inthashCode()StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Constructor Detail
-
PublishResponse
public PublishResponse(long term, long version)
-
PublishResponse
public PublishResponse(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getTerm
public long getTerm()
-
getVersion
public long getVersion()
-
-