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