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