Interface RequestResult

All Superinterfaces:
JsonType
All Known Implementing Classes:
BooleanResult, ClaimSegmentResult, ErrorResult, GetAggregateIdsResult, GetDocumentResult, GetDocumentStatsResult, GetEventsResult, GetFacetStatsResult, GetPositionResult, GetRelationshipsResult, GetScheduleResult, GetSearchHistogramResult, GetValueResult, ReadFromIndexResult, ReadResult, SearchDocumentsResult, StringResult, VoidResult

public interface RequestResult extends JsonType
Marker interface for responses to Request objects (including commands and queries).

Implementations of this interface are returned by the Flux platform and matched to their corresponding Request using the requestId.

A typical RequestResult contains minimal payload and metadata for monitoring, and may override JsonType.toMetric() to avoid logging full results.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The requestId of the original Request this result corresponds to.
    long
    The timestamp (in epoch milliseconds) when this result was generated.

    Methods inherited from interface io.fluxcapacitor.common.api.JsonType

    toMetric
  • Method Details

    • getRequestId

      long getRequestId()
      The requestId of the original Request this result corresponds to.
    • getTimestamp

      long getTimestamp()
      The timestamp (in epoch milliseconds) when this result was generated.