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,org.elasticsearch.core.RefCounted
- 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.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe persisted global checkpoint for the shard.inthashCode()longThe persisted local checkpoint for the shard.voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
-
Constructor Details
-
ReplicaResponse
public ReplicaResponse(long localCheckpoint, long globalCheckpoint)
-
-
Method Details
-
writeTo
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
-
equals
-
hashCode
public int hashCode()
-