Interface LocalSessionStore

All Superinterfaces:
SessionStore

public interface LocalSessionStore extends SessionStore
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.

Author:
Tim Fox, Paulo Lopes
  • Field Details

    • DEFAULT_REAPER_INTERVAL

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

      static final String DEFAULT_SESSION_MAP_NAME
      Default name for map used to store sessions
      See Also:
  • Method Details

    • create

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

      static LocalSessionStore create(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

      static LocalSessionStore create(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