Class LocalSessionStore

  • All Implemented Interfaces:
    RxDelegate

    public class LocalSessionStore
    extends SessionStore
    implements RxDelegate
    A session store which is only available on a single node.

    This store is appropriate if you have just a single Vert.x instance and you are using sticky sessions in your application and have configured your load balancer to always route HTTP requests to the same Vert.x instance.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Field Detail

      • DEFAULT_SESSIONID_LENGTH

        public static final int DEFAULT_SESSIONID_LENGTH
        Default length for a session id. More info: https://www.owasp.org/index.php/Session_Management_Cheat_Sheet
        See Also:
        Constant Field Values
      • DEFAULT_REAPER_INTERVAL

        public static final long DEFAULT_REAPER_INTERVAL
        Default of how often, in ms, to check for expired sessions
        See Also:
        Constant Field Values
      • DEFAULT_SESSION_MAP_NAME

        public static final String DEFAULT_SESSION_MAP_NAME
        Default name for map used to store sessions
        See Also:
        Constant Field Values
    • Constructor Detail

      • LocalSessionStore

        public LocalSessionStore​(Object delegate)
    • Method Detail

      • create

        public static LocalSessionStore create​(io.vertx.reactivex.core.Vertx vertx)
        Create a session store
        Parameters:
        vertx - the Vert.x instance
        Returns:
        the session store
      • create

        public static LocalSessionStore create​(io.vertx.reactivex.core.Vertx vertx,
                                               String sessionMapName)
        Create a session store
        Parameters:
        vertx - the Vert.x instance
        sessionMapName - name for map used to store sessions
        Returns:
        the session store
      • create

        public static LocalSessionStore create​(io.vertx.reactivex.core.Vertx vertx,
                                               String sessionMapName,
                                               long reaperInterval)
        Create a session store
        Parameters:
        vertx - the Vert.x instance
        sessionMapName - name for map used to store sessions
        reaperInterval - how often, in ms, to check for expired sessions
        Returns:
        the session store