Class ReadResult

java.lang.Object
io.fluxzero.common.api.tracking.ReadResult
All Implemented Interfaces:
JsonType, RequestResult

public class ReadResult extends Object implements RequestResult
Result returned in response to a Read request for a batch of messages.

Contains the retrieved MessageBatch and metadata such as request ID and timestamp.

  • Constructor Details

    • ReadResult

      public ReadResult()
  • Method Details

    • toMetric

      public ReadResult.Metric toMetric()
      Produces a metric-friendly summary of the result for publishing to the Fluxzero metrics log.
      Specified by:
      toMetric in interface JsonType
      Returns:
      a ReadResult.Metric with batch metadata and timestamp