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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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 IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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
-
-