Class DistributableSession

java.lang.Object
org.wildfly.clustering.vertx.web.DistributableSession
All Implemented Interfaces:
io.vertx.ext.web.Session, AutoCloseable, VertxSession

public class DistributableSession extends Object implements VertxSession
A distributable Vert.x session.
  • Constructor Details

    • DistributableSession

      public DistributableSession(org.wildfly.clustering.session.SessionManager<Void> manager, org.wildfly.clustering.session.Session<Void> session, org.wildfly.clustering.cache.batch.SuspendedBatch batch, Runnable closeTask)
  • Method Details

    • regenerateId

      public io.vertx.ext.web.Session regenerateId()
      Specified by:
      regenerateId in interface io.vertx.ext.web.Session
    • id

      public String id()
      Specified by:
      id in interface io.vertx.ext.web.Session
    • put

      public io.vertx.ext.web.Session put(String key, Object value)
      Specified by:
      put in interface io.vertx.ext.web.Session
    • putIfAbsent

      public io.vertx.ext.web.Session putIfAbsent(String key, Object value)
      Specified by:
      putIfAbsent in interface io.vertx.ext.web.Session
    • computeIfAbsent

      public io.vertx.ext.web.Session computeIfAbsent(String key, Function<String,Object> mappingFunction)
      Specified by:
      computeIfAbsent in interface io.vertx.ext.web.Session
    • get

      public <T> T get(String key)
      Specified by:
      get in interface io.vertx.ext.web.Session
    • remove

      public <T> T remove(String key)
      Specified by:
      remove in interface io.vertx.ext.web.Session
    • data

      public Map<String,Object> data()
      Specified by:
      data in interface io.vertx.ext.web.Session
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface io.vertx.ext.web.Session
    • lastAccessed

      public long lastAccessed()
      Specified by:
      lastAccessed in interface io.vertx.ext.web.Session
    • destroy

      public void destroy()
      Specified by:
      destroy in interface io.vertx.ext.web.Session
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface io.vertx.ext.web.Session
    • isRegenerated

      public boolean isRegenerated()
      Specified by:
      isRegenerated in interface io.vertx.ext.web.Session
    • oldId

      public String oldId()
      Specified by:
      oldId in interface io.vertx.ext.web.Session
    • timeout

      public long timeout()
      Specified by:
      timeout in interface io.vertx.ext.web.Session
    • setAccessed

      public void setAccessed()
      Specified by:
      setAccessed in interface io.vertx.ext.web.Session
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface VertxSession