Module org.elasticsearch.server
Class PreVoteResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.cluster.coordination.PreVoteResponse
- All Implemented Interfaces:
Writeable,RefCounted
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionPreVoteResponse(long currentTerm, long lastAcceptedTerm, long lastAcceptedVersion) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonglonginthashCode()toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
PreVoteResponse
public PreVoteResponse(long currentTerm, long lastAcceptedTerm, long lastAcceptedVersion) -
PreVoteResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
getCurrentTerm
public long getCurrentTerm() -
getLastAcceptedTerm
public long getLastAcceptedTerm() -
getLastAcceptedVersion
public long getLastAcceptedVersion() -
toString
-
equals
-
hashCode
public int hashCode()
-