Interface LocalSessionStore
- All Superinterfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefault of how often, in ms, to check for expired sessionsstatic final StringDefault name for map used to store sessionsFields inherited from interface SessionStore
DEFAULT_SESSIONID_LENGTH -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic LocalSessionStoreCreate a session storestatic LocalSessionStoreCreate a session storestatic LocalSessionStoreCreate a session storeMethods inherited from interface SessionStore
clear, close, createSession, createSession, delete, get, init, put, retryTimeout, size
-
Field Details
-
DEFAULT_REAPER_INTERVAL
static final long DEFAULT_REAPER_INTERVALDefault of how often, in ms, to check for expired sessions- See Also:
-
DEFAULT_SESSION_MAP_NAME
-
-
Method Details
-
create
Create a session store- Parameters:
vertx- the Vert.x instance- Returns:
- the session store
-
create
Create a session store- Parameters:
vertx- the Vert.x instancesessionMapName- name for map used to store sessions- Returns:
- the session store
-
create
Create a session store- Parameters:
vertx- the Vert.x instancesessionMapName- name for map used to store sessionsreaperInterval- how often, in ms, to check for expired sessions- Returns:
- the session store
-