ReplicationOperation.ReplicaResponse, Streamable, Writeablepublic static class TransportReplicationAction.ReplicaResponse extends ActionResponse implements ReplicationOperation.ReplicaResponse
TransportResponse.EmptyWriteable.Reader<V>, Writeable.Writer<V>| Constructor | Description |
|---|---|
ReplicaResponse(long localCheckpoint,
long globalCheckpoint) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
globalCheckpoint() |
The global checkpoint for the shard.
|
long |
localCheckpoint() |
The local checkpoint for the shard.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoteAddress, remoteAddresspublic ReplicaResponse(long localCheckpoint,
long globalCheckpoint)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class ActionResponsejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class ActionResponsejava.io.IOExceptionpublic long localCheckpoint()
ReplicationOperation.ReplicaResponselocalCheckpoint in interface ReplicationOperation.ReplicaResponsepublic long globalCheckpoint()
ReplicationOperation.ReplicaResponseglobalCheckpoint in interface ReplicationOperation.ReplicaResponse