Class GetValueResult
java.lang.Object
io.fluxzero.common.api.AbstractRequestResult
io.fluxzero.common.api.keyvalue.GetValueResult
- All Implemented Interfaces:
JsonType, RequestResult
Response to a
GetValue request, returning the value associated with the given key.
The result includes the serialized form of the value (if found) and a timestamp marking when the value was retrieved.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoMetric()Lightweight representation of this response 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
-
GetValueResult
public GetValueResult()
-
-
Method Details
-
toMetric
Lightweight representation of this response for metrics logging.- Returns:
- a safe and compact object suitable for serialization to the metrics log
-