public class ServiceList extends Object
Constructor and Description |
---|
ServiceList()
Default constructor
|
ServiceList(JsonObject json)
Constructor from JSON
|
ServiceList(ServiceList other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getIndex()
Get Consul index
|
List<Service> |
getList()
Get list of services
|
int |
hashCode() |
ServiceList |
setIndex(long index)
Set Consul index, a unique identifier representing the current state of the requested list of services
|
ServiceList |
setList(List<Service> list)
Set list of services
|
JsonObject |
toJson()
Convert to JSON
|
public ServiceList()
public ServiceList(ServiceList other)
other
- the one to copypublic ServiceList(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getIndex()
public ServiceList setIndex(long index)
index
- the consul indexpublic ServiceList setList(List<Service> list)
list
- the list of servicesCopyright © 2023 Eclipse. All rights reserved.