Module org.elasticsearch.server
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 SummaryModifier and TypeMethodDescriptionvoidrunPostReplicationActions(ActionListener<Void> listener) Run actions to be triggered post replicationvoidsetShardInfo(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
- 
runPostReplicationActionsRun actions to be triggered post replication- Parameters:
- listener- calllback that is invoked after post replication actions have completed
 
 
-