Class GetDocumentResult
java.lang.Object
io.fluxcapacitor.common.api.search.GetDocumentResult
- All Implemented Interfaces:
JsonType
,RequestResult
Result returned in response to a
GetDocument
request.
This result includes a single SerializedDocument
identified by its ID and collection,
or null
if the document could not be found.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Lightweight structure for representingGetDocumentResult
in Flux metrics logs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoMetric()
Converts this result to a compact representation for metrics logging.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
-
GetDocumentResult
public GetDocumentResult()
-
-
Method Details
-
toMetric
Converts this result to a compact representation for metrics logging.- Specified by:
toMetric
in interfaceJsonType
- Returns:
- a
GetDocumentResult.Metric
containing only the response timestamp.
-