Class GetEventsResult

java.lang.Object
io.fluxcapacitor.common.api.eventsourcing.GetEventsResult
All Implemented Interfaces:
JsonType, RequestResult

public class GetEventsResult extends Object implements RequestResult
Response to a GetEvents request, returning a batch of events for an aggregate.

This class is used by the Flux platform to deliver a segment of the event stream associated with an aggregate. It includes metadata for sequencing and tracking purposes.

Events are returned in an EventBatch, which includes the aggregate ID, a list of SerializedMessages, and a flag indicating whether the events were stored-only or also published.

See Also:
  • Constructor Details

    • GetEventsResult

      public GetEventsResult()
  • Method Details

    • toMetric

      public GetEventsResult.Metric toMetric()
      Converts this result to a minimal metric object for performance logging or monitoring.

      This avoids logging full event payloads while preserving key metadata.

      Specified by:
      toMetric in interface JsonType
      Returns:
      a metric summary of the response