Class DistributableSessionStore

java.lang.Object
org.wildfly.clustering.vertx.web.DistributableSessionStore
All Implemented Interfaces:
io.vertx.ext.web.sstore.SessionStore
Direct Known Subclasses:
HotRodSessionStore, InfinispanSessionStore

public class DistributableSessionStore extends Object implements io.vertx.ext.web.sstore.SessionStore
A distributable Vert.x session store.
  • Field Summary

    Fields inherited from interface io.vertx.ext.web.sstore.SessionStore

    DEFAULT_SESSIONID_LENGTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    DistributableSessionStore(BiFunction<io.vertx.core.Context,io.vertx.core.json.JsonObject,org.wildfly.clustering.session.SessionManagerFactory<io.vertx.core.Context,Void>> factory, Runnable closeTask)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.Future<Void>
     
    void
     
    io.vertx.ext.web.Session
    createSession(long timeout)
     
    io.vertx.ext.web.Session
    createSession(long timeout, int length)
     
    io.vertx.core.Future<Void>
     
    io.vertx.core.Future<io.vertx.ext.web.Session>
    get(String id)
     
    io.vertx.ext.web.sstore.SessionStore
    init(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject options)
     
    io.vertx.core.Future<Void>
    put(io.vertx.ext.web.Session session)
     
    long
     
    io.vertx.core.Future<Integer>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vertx.ext.web.sstore.SessionStore

    clear, delete, get, put, size
  • Constructor Details

    • DistributableSessionStore

      public DistributableSessionStore(BiFunction<io.vertx.core.Context,io.vertx.core.json.JsonObject,org.wildfly.clustering.session.SessionManagerFactory<io.vertx.core.Context,Void>> factory, Runnable closeTask)
  • Method Details

    • init

      public io.vertx.ext.web.sstore.SessionStore init(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject options)
      Specified by:
      init in interface io.vertx.ext.web.sstore.SessionStore
    • retryTimeout

      public long retryTimeout()
      Specified by:
      retryTimeout in interface io.vertx.ext.web.sstore.SessionStore
    • createSession

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

      public io.vertx.ext.web.Session createSession(long timeout, int length)
      Specified by:
      createSession in interface io.vertx.ext.web.sstore.SessionStore
    • get

      public io.vertx.core.Future<io.vertx.ext.web.Session> get(String id)
      Specified by:
      get in interface io.vertx.ext.web.sstore.SessionStore
    • delete

      public io.vertx.core.Future<Void> delete(String id)
      Specified by:
      delete in interface io.vertx.ext.web.sstore.SessionStore
    • put

      public io.vertx.core.Future<Void> put(io.vertx.ext.web.Session session)
      Specified by:
      put in interface io.vertx.ext.web.sstore.SessionStore
    • clear

      public io.vertx.core.Future<Void> clear()
      Specified by:
      clear in interface io.vertx.ext.web.sstore.SessionStore
    • size

      public io.vertx.core.Future<Integer> size()
      Specified by:
      size in interface io.vertx.ext.web.sstore.SessionStore
    • close

      public void close()
      Specified by:
      close in interface io.vertx.ext.web.sstore.SessionStore