Class KeyValue

java.lang.Object
org.jmxtrans.embedded.config.KeyValue

public class KeyValue
extends Object
This class represents a value retrieved from a key value store. Associated with the value comes the version. The version is a unique for the value of the key. It can be used to determine if a key has been changed. Etcd and Consul use an "index", a monotonically incrementing number, Zookeeper uses transaction ids
Author:
Simone Zorzetti
  • Constructor Details

    • KeyValue

      public KeyValue​(String val, String idx)
      Constructor
  • Method Details

    • getValue

      public String getValue()
      The value of the key
      Returns:
    • getVersion

      public String getVersion()
      The version of the key
      Returns: