ReplicationOperation.ReplicaResponse
, Streamable
, Writeable
public static class TransportReplicationAction.ReplicaResponse extends ActionResponse implements ReplicationOperation.ReplicaResponse
TransportResponse.Empty
Writeable.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, wait
remoteAddress, remoteAddress
public ReplicaResponse(long localCheckpoint, long globalCheckpoint)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class ActionResponse
java.io.IOException
public long localCheckpoint()
ReplicationOperation.ReplicaResponse
localCheckpoint
in interface ReplicationOperation.ReplicaResponse
public long globalCheckpoint()
ReplicationOperation.ReplicaResponse
globalCheckpoint
in interface ReplicationOperation.ReplicaResponse