Class ClaimSegmentResult
java.lang.Object
io.fluxzero.common.api.AbstractRequestResult
io.fluxzero.common.api.tracking.ClaimSegmentResult
- All Implemented Interfaces:
JsonType, 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLightweight metric representation of aClaimSegmentResult, used for telemetry. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractRequestResult
getRequestReceivedTimestamp, getResponseQueuedTimestamp, getResponseSendStartTimestamp, setRequestReceivedTimestamp, setResponseQueuedTimestamp, setResponseSendStartTimestampMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestResult
getRequestId, getTimestamp
-
Constructor Details
-
ClaimSegmentResult
public ClaimSegmentResult()
-
-
Method Details
-
toMetric
Returns a compact metric representation of this claim for monitoring purposes.- Returns:
- a safe and compact object suitable for serialization to the metrics log
-