Package com.codingchili.core.listener
Interface Session
- All Superinterfaces:
Cloneable
,Comparable
,Messageable
,Serializable
,io.vertx.core.shareddata.Shareable
,Storable
Indicates that a request is part of a persistent connection. This means
that services can write to the session without using request-reply messaging.
-
Field Summary
-
Method Summary
Methods inherited from interface com.codingchili.core.listener.Messageable
write
Methods inherited from interface io.vertx.core.shareddata.Shareable
copy
Methods inherited from interface com.codingchili.core.storage.Storable
compareTo, compareToAttribute, getId
-
Field Details
-
ID
- See Also:
- Constant Field Values
-
HOME
- See Also:
- Constant Field Values
-
-
Method Details
-
isActive
io.vertx.core.Future<Boolean> isActive()- Returns:
- true if the session is still active.
-
getHome
String getHome()- Returns:
- the session owner identified by a string.
-
asJson
io.vertx.core.json.JsonObject asJson()- Returns:
- returns data associated with a session.
-
destroy
io.vertx.core.Future<Void> destroy()Destroys the session.- Returns:
- callback
-
update
io.vertx.core.Future<Void> update()Call this to update the session data after modification.- Returns:
- callback
-