Class Session
java.lang.Object
io.vertx.ext.consul.Session
-
Constructor Summary
ConstructorsConstructorDescriptionSession()Default constructorSession(JsonObject session) Constructor from JSONCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the list of associated health checkslongGet the create index of sessiongetId()Get the ID of sessionlonggetIndex()Get Consul indexlongLock delay is a time duration, between0and60seconds.getNode()Get the ID of nodeinthashCode()Set the list of associated health checkssetCreateIndex(long createIndex) Set the create index of sessionSet the ID of nodesetIndex(long index) Set Consul indexsetLockDelay(long lockDelay) Set the Lock delay of sessionSet the ID of nodetoJson()Convert to JSON
-
Constructor Details
-
Session
public Session()Default constructor -
Session
-
Session
-
-
Method Details
-
toJson
-
getLockDelay
public long getLockDelay()Lock delay is a time duration, between0and60seconds. When a session invalidation takes place, Consul prevents any of the previously held locks from being re-acquired for thelock-delayinterval. The default is15s.- Returns:
- the lock delay in seconds
-
getNode
-
getChecks
-
getId
-
getCreateIndex
public long getCreateIndex()Get the create index of session- Returns:
- the create index of session
-
getIndex
public long getIndex()Get Consul index- Returns:
- the consul index
-
setLockDelay
Set the Lock delay of session- Parameters:
lockDelay- the Lock delay of session- Returns:
- reference to this, for fluency
-
setNode
-
setChecks
-
setCreateIndex
Set the create index of session- Parameters:
createIndex- the create index of session- Returns:
- reference to this, for fluency
-
setId
-
setIndex
Set Consul index- Parameters:
index- the consul index- Returns:
- reference to this, for fluency
-
equals
-
hashCode
-