Package org.wildfly.clustering.vertx.web
Class DistributableSession
java.lang.Object
org.wildfly.clustering.vertx.web.DistributableSession
- All Implemented Interfaces:
io.vertx.ext.web.Session,AutoCloseable,VertxSession
A distributable Vert.x session.
-
Constructor Summary
ConstructorsConstructorDescriptionDistributableSession(org.wildfly.clustering.session.SessionManager<Void> manager, org.wildfly.clustering.session.Session<Void> session, org.wildfly.clustering.cache.batch.SuspendedBatch batch, Runnable closeTask) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()io.vertx.ext.web.SessioncomputeIfAbsent(String key, Function<String, Object> mappingFunction) data()voiddestroy()<T> Tid()booleanbooleanisEmpty()booleanlongoldId()io.vertx.ext.web.Sessionio.vertx.ext.web.SessionputIfAbsent(String key, Object value) io.vertx.ext.web.Session<T> Tvoidlongtimeout()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.ext.web.Session
value
-
Constructor Details
-
DistributableSession
-
-
Method Details
-
regenerateId
public io.vertx.ext.web.Session regenerateId()- Specified by:
regenerateIdin interfaceio.vertx.ext.web.Session
-
id
- Specified by:
idin interfaceio.vertx.ext.web.Session
-
put
- Specified by:
putin interfaceio.vertx.ext.web.Session
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceio.vertx.ext.web.Session
-
computeIfAbsent
public io.vertx.ext.web.Session computeIfAbsent(String key, Function<String, Object> mappingFunction) - Specified by:
computeIfAbsentin interfaceio.vertx.ext.web.Session
-
get
- Specified by:
getin interfaceio.vertx.ext.web.Session
-
remove
- Specified by:
removein interfaceio.vertx.ext.web.Session
-
data
- Specified by:
datain interfaceio.vertx.ext.web.Session
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceio.vertx.ext.web.Session
-
lastAccessed
public long lastAccessed()- Specified by:
lastAccessedin interfaceio.vertx.ext.web.Session
-
destroy
public void destroy()- Specified by:
destroyin interfaceio.vertx.ext.web.Session
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceio.vertx.ext.web.Session
-
isRegenerated
public boolean isRegenerated()- Specified by:
isRegeneratedin interfaceio.vertx.ext.web.Session
-
oldId
- Specified by:
oldIdin interfaceio.vertx.ext.web.Session
-
timeout
public long timeout()- Specified by:
timeoutin interfaceio.vertx.ext.web.Session
-
setAccessed
public void setAccessed()- Specified by:
setAccessedin interfaceio.vertx.ext.web.Session
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVertxSession
-