public class NodeList extends Object
Constructor and Description |
---|
NodeList()
Default constructor
|
NodeList(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
long |
getIndex()
Get Consul index
|
List<Node> |
getList()
Get list of nodes
|
NodeList |
setIndex(long index)
Set Consul index, a unique identifier representing the current state of the requested list of nodes
|
NodeList |
setList(List<Node> list)
Set list of nodes
|
JsonObject |
toJson()
Convert to JSON
|
public NodeList()
public NodeList(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getIndex()
public NodeList setIndex(long index)
index
- the consul indexCopyright © 2017. All rights reserved.