Class KeyValueList
java.lang.Object
io.vertx.ext.consul.KeyValueList
Holds result of key/value pairs query
- Author:
- Ruslan Sennov
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorKeyValueList(JsonObject json) Constructor from JSONKeyValueList(KeyValueList other) Copy constructor -
Method Summary
-
Constructor Details
-
KeyValueList
public KeyValueList()Default constructor -
KeyValueList
-
KeyValueList
-
-
Method Details
-
toJson
-
isPresent
public boolean isPresent()Returntrueif there is a key/value pairs present, otherwisefalse.- Returns:
trueif there is a key/value pairs present, otherwisefalse
-
getIndex
public long getIndex()Get Consul index- Returns:
- the consul index
-
setIndex
Set Consul index- Parameters:
index- the consul index- Returns:
- reference to this, for fluency
-
getList
-
setList
Set list of key/value pairs- Parameters:
list- list of key/value pairs- Returns:
- reference to this, for fluency
-
equals
-
hashCode
-