Class GetDocumentResult
java.lang.Object
io.fluxzero.common.api.AbstractRequestResult
io.fluxzero.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 classLightweight structure for representingGetDocumentResultin Fluxzero metrics logs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoMetric()Converts this result to a compact representation for metrics logging.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
-
GetDocumentResult
public GetDocumentResult()
-
-
Method Details
-
toMetric
Converts this result to a compact representation for metrics logging.- Returns:
- a
GetDocumentResult.Metriccontaining only the response timestamp.
-