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 class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionPreVoteResponse
(long currentTerm, long lastAcceptedTerm, long lastAcceptedVersion) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
long
int
hashCode()
toString()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:Writeable
Write this into the StreamOutput.- Throws:
IOException
-
getCurrentTerm
public long getCurrentTerm() -
getLastAcceptedTerm
public long getLastAcceptedTerm() -
getLastAcceptedVersion
public long getLastAcceptedVersion() -
toString
-
equals
-
hashCode
public int hashCode()
-