public class NodeList extends Object
Constructor and Description |
---|
NodeList()
Default constructor
|
NodeList(JsonObject json)
Constructor from JSON
|
NodeList(NodeList other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getIndex()
Get Consul index
|
List<Node> |
getList()
Get list of nodes
|
int |
hashCode() |
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(NodeList other)
other
- the one to copypublic NodeList(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getIndex()
public NodeList setIndex(long index)
index
- the consul indexpublic NodeList setList(List<Node> list)
list
- the list of nodesCopyright © 2023 Eclipse. All rights reserved.