Package org.jmxtrans.embedded.config
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 Summary
-
Method Summary
Modifier and Type Method Description StringgetValue()The value of the keyStringgetVersion()The version of the key
-
Constructor Details
-
KeyValue
Constructor
-
-
Method Details
-
getValue
The value of the key- Returns:
-
getVersion
The version of the key- Returns:
-