Class ClaimSegmentResult

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

public class ClaimSegmentResult extends Object implements RequestResult
Result of a ClaimSegment request.

This response confirms that a tracker has successfully claimed a segment range for client-controlled tracking. It provides the current Position and the claimed segment range, allowing the client to manage its own message consumption logic.

See Also:
  • Constructor Details

    • ClaimSegmentResult

      public ClaimSegmentResult()
  • Method Details

    • toMetric

      public Object toMetric()
      Returns a compact metric representation of this claim for monitoring purposes.
      Specified by:
      toMetric in interface JsonType
      Returns:
      a safe and compact object suitable for serialization to the metrics log