Class ReadFromIndexResult

java.lang.Object
io.fluxcapacitor.common.api.tracking.ReadFromIndexResult
All Implemented Interfaces:
JsonType, RequestResult

public class ReadFromIndexResult extends Object implements RequestResult
Result for a ReadFromIndex request.

Contains the messages read from the specified index and accompanying metadata for auditing and metrics logging.

  • Constructor Details

    • ReadFromIndexResult

      public ReadFromIndexResult()
  • Method Details

    • toMetric

      public ReadFromIndexResult.Metric toMetric()
      Converts this result into a metric representation, which includes the number of messages and timestamp.
      Specified by:
      toMetric in interface JsonType
      Returns:
      a safe and compact object suitable for serialization to the metrics log