Class ServiceEntryList
java.lang.Object
io.vertx.ext.consul.ServiceEntryList
Holds list of services, nodes and related checks
- Author:
- Ruslan Sennov
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorServiceEntryList(JsonObject json) Constructor from JSONServiceEntryList(ServiceEntryList other) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetIndex()Get Consul indexgetList()Get list of servicesinthashCode()setIndex(long index) Set Consul index, a unique identifier representing the current state of the requested list of servicessetList(List<ServiceEntry> list) Set list of servicestoJson()Convert to JSON
-
Constructor Details
-
ServiceEntryList
public ServiceEntryList()Default constructor -
ServiceEntryList
-
ServiceEntryList
Copy constructor- Parameters:
other- the one to copy
-
-
Method Details
-
toJson
-
getIndex
public long getIndex()Get Consul index- Returns:
- the consul index
-
setIndex
Set Consul index, a unique identifier representing the current state of the requested list of services- Parameters:
index- the consul index- Returns:
- reference to this, for fluency
-
getList
-
setList
Set list of services- Parameters:
list- list of services- Returns:
- reference to this, for fluency
-
equals
-
hashCode
-