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