Class ReadResult
java.lang.Object
io.fluxcapacitor.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 class
Compact representation of theReadResult
used for monitoring. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoMetric()
Produces a metric-friendly summary of the result for publishing to the Flux metrics log.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.common.api.RequestResult
getRequestId, getTimestamp
-
Constructor Details
-
ReadResult
public ReadResult()
-
-
Method Details
-
toMetric
Produces a metric-friendly summary of the result for publishing to the Flux metrics log.- Specified by:
toMetric
in interfaceJsonType
- Returns:
- a
ReadResult.Metric
with batch metadata and timestamp
-