Class ReadResult
java.lang.Object
io.fluxzero.common.api.tracking.ReadResult
- All Implemented Interfaces:
JsonType, 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCompact representation of theReadResultused for monitoring. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoMetric()Produces a metric-friendly summary of the result for publishing to the Fluxzero metrics log.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestResult
getRequestId, getTimestamp
-
Constructor Details
-
ReadResult
public ReadResult()
-
-
Method Details
-
toMetric
Produces a metric-friendly summary of the result for publishing to the Fluxzero metrics log.- Specified by:
toMetricin interfaceJsonType- Returns:
- a
ReadResult.Metricwith batch metadata and timestamp
-