Class GetValueResult

java.lang.Object
io.fluxcapacitor.common.api.keyvalue.GetValueResult
All Implemented Interfaces:
JsonType, RequestResult

public class GetValueResult extends Object implements 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:
  • Constructor Details

    • GetValueResult

      public GetValueResult()
  • Method Details

    • toMetric

      public GetValueResult.Metric toMetric()
      Lightweight representation of this response for metrics logging.
      Specified by:
      toMetric in interface JsonType
      Returns:
      a safe and compact object suitable for serialization to the metrics log