Class KeyValue

java.lang.Object
io.micronaut.discovery.consul.client.v1.KeyValue

public class KeyValue extends Object
Represents a Key/Value pair returned from Consul via /kv/:key.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • KeyValue

      public KeyValue(String key, String value)
      Parameters:
      key - The key
      value - The value
  • Method Details

    • getKey

      public String getKey()
      Returns:
      The key
    • getValue

      public String getValue()
      Returns:
      The value