Class TransportReplicationAction.ReplicaResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.action.support.replication.TransportReplicationAction.ReplicaResponse
-
- All Implemented Interfaces:
ReplicationOperation.ReplicaResponse,Writeable
- Enclosing class:
- TransportReplicationAction<Request extends ReplicationRequest<Request>,ReplicaRequest extends ReplicationRequest<ReplicaRequest>,Response extends ReplicationResponse>
public static class TransportReplicationAction.ReplicaResponse extends ActionResponse implements ReplicationOperation.ReplicaResponse
-
-
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
Constructors Constructor Description ReplicaResponse(long localCheckpoint, long globalCheckpoint)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)longglobalCheckpoint()The persisted global checkpoint for the shard.inthashCode()longlocalCheckpoint()The persisted local checkpoint for the shard.voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
localCheckpoint
public long localCheckpoint()
Description copied from interface:ReplicationOperation.ReplicaResponseThe persisted local checkpoint for the shard.- Specified by:
localCheckpointin interfaceReplicationOperation.ReplicaResponse- Returns:
- the persisted local checkpoint
-
globalCheckpoint
public long globalCheckpoint()
Description copied from interface:ReplicationOperation.ReplicaResponseThe persisted global checkpoint for the shard.- Specified by:
globalCheckpointin interfaceReplicationOperation.ReplicaResponse- Returns:
- the persisted global checkpoint
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-