Class PreVoteResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.cluster.coordination.PreVoteResponse
- All Implemented Interfaces:
Writeable
,org.elasticsearch.core.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
ConstructorDescriptionPreVoteResponse(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, incRef, remoteAddress, remoteAddress, tryIncRef
-
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()
-