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 Details

    • replicaRequest

      @Nullable RequestT 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

      void setShardInfo(ReplicationResponse.ShardInfo shardInfo)
    • runPostReplicationActions

      void runPostReplicationActions(ActionListener<Void> listener)
      Run actions to be triggered post replication
      Parameters:
      listener - calllback that is invoked after post replication actions have completed