Class BulkUpdateDocuments

java.lang.Object
io.fluxcapacitor.common.api.Request
io.fluxcapacitor.common.api.Command
io.fluxcapacitor.common.api.search.BulkUpdateDocuments
All Implemented Interfaces:
JsonType

public class BulkUpdateDocuments extends Command
Command to perform a batch update of documents in the search/document store.

This operation accepts a collection of DocumentUpdate items, which may be of the types:

The entire batch is processed together, and depending on the Guarantee, may ensure delivery or persistence.

  • Constructor Details

    • BulkUpdateDocuments

      public BulkUpdateDocuments()
  • Method Details

    • getSize

      public int getSize()
      Returns:
      the number of document updates in this batch.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toMetric

      public Object toMetric()
      Metric representation of the bulk update, for logging or monitoring.
      Returns:
      a safe and compact object suitable for serialization to the metrics log
    • routingKey

      public String routingKey()
      Uses the ID of the first update as the routing key for this command.
      Overrides:
      routingKey in class Command
      Returns:
      a routing key string, or null if not specified