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.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
The persisted global checkpoint for the shard.int
hashCode()
long
The persisted local checkpoint for the shard.void
writeTo(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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
localCheckpoint
public long localCheckpoint()Description copied from interface:ReplicationOperation.ReplicaResponse
The persisted local checkpoint for the shard.- Specified by:
localCheckpoint
in interfaceReplicationOperation.ReplicaResponse
- Returns:
- the persisted local checkpoint
-
globalCheckpoint
public long globalCheckpoint()Description copied from interface:ReplicationOperation.ReplicaResponse
The persisted global checkpoint for the shard.- Specified by:
globalCheckpoint
in interfaceReplicationOperation.ReplicaResponse
- Returns:
- the persisted global checkpoint
-
equals
-
hashCode
public int hashCode()
-