Interface ReplicationOperation.PrimaryResult<RequestT extends ReplicationRequest<RequestT>>
- All Known Implementing Classes:
TransportReplicationAction.PrimaryResult
,TransportWriteAction.WritePrimaryResult
- Enclosing class:
- ReplicationOperation<Request extends ReplicationRequest<Request>,ReplicaRequest extends ReplicationRequest<ReplicaRequest>,PrimaryResultT extends ReplicationOperation.PrimaryResult<ReplicaRequest>>
public static interface ReplicationOperation.PrimaryResult<RequestT extends ReplicationRequest<RequestT>>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runPostReplicationActions(ActionListener<Void> listener)
Run actions to be triggered post replicationvoid
setShardInfo(ReplicationResponse.ShardInfo shardInfo)
-
Method Details
-
replicaRequest
- Returns:
- null if no operation needs to be sent to a replica (for example when the operation failed on the primary due to a parsing exception)
-
setShardInfo
-
runPostReplicationActions
Run actions to be triggered post replication- Parameters:
listener
- calllback that is invoked after post replication actions have completed
-