Class TransportReplicationAction.ConcreteReplicaRequest<R extends TransportRequest>
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.support.replication.TransportReplicationAction.ConcreteShardRequest<R>
-
- org.elasticsearch.action.support.replication.TransportReplicationAction.ConcreteReplicaRequest<R>
-
- All Implemented Interfaces:
Streamable
,Writeable
,TaskAwareRequest
- Enclosing class:
- TransportReplicationAction<Request extends ReplicationRequest<Request>,ReplicaRequest extends ReplicationRequest<ReplicaRequest>,Response extends ReplicationResponse>
protected static final class TransportReplicationAction.ConcreteReplicaRequest<R extends TransportRequest> extends TransportReplicationAction.ConcreteShardRequest<R>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description ConcreteReplicaRequest(java.util.function.Supplier<R> requestSupplier)
ConcreteReplicaRequest(R request, java.lang.String targetAllocationID, long primaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes)
-
Method Summary
Modifier and Type Method Description long
getGlobalCheckpoint()
long
getMaxSeqNoOfUpdatesOrDeletes()
void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction.ConcreteShardRequest
createTask, getDescription, getParentTask, getPrimaryTerm, getRequest, getTargetAllocationID, setParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
Method Detail
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classTransportReplicationAction.ConcreteShardRequest<R extends TransportRequest>
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classTransportReplicationAction.ConcreteShardRequest<R extends TransportRequest>
- Throws:
java.io.IOException
-
getGlobalCheckpoint
public long getGlobalCheckpoint()
-
getMaxSeqNoOfUpdatesOrDeletes
public long getMaxSeqNoOfUpdatesOrDeletes()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTransportReplicationAction.ConcreteShardRequest<R extends TransportRequest>
-
-