Interface ClusteredSessionStore
- All Superinterfaces:
SessionStore
A session store which stores sessions in a distributed map so they are available across the cluster.
- Author:
- Tim Fox, Paulo Lopes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefault retry time out, in ms, for a session not found in this store.static final StringThe default name used for the session mapFields inherited from interface SessionStore
DEFAULT_SESSIONID_LENGTH -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ClusteredSessionStoreCreate a session storestatic ClusteredSessionStoreCreate a session store.static ClusteredSessionStoreCreate a session storestatic ClusteredSessionStoreCreate a session store.Methods inherited from interface SessionStore
clear, close, createSession, createSession, delete, get, init, put, retryTimeout, size
-
Field Details
-
DEFAULT_SESSION_MAP_NAME
-
DEFAULT_RETRY_TIMEOUT
static final long DEFAULT_RETRY_TIMEOUTDefault retry time out, in ms, for a session not found in this store.- See Also:
-
-
Method Details
-
create
Create a session store- Parameters:
vertx- the Vert.x instancesessionMapName- the session map name- Returns:
- the session store
-
create
Create a session store. The retry timeout value, configures how long the session handler will retry to get a session from the store when it is not found.- Parameters:
vertx- the Vert.x instancesessionMapName- the session map nameretryTimeout- the store retry timeout, in ms- Returns:
- the session store
-
create
Create a session store- Parameters:
vertx- the Vert.x instance- Returns:
- the session store
-
create
Create a session store. The retry timeout value, configures how long the session handler will retry to get a session from the store when it is not found.- Parameters:
vertx- the Vert.x instanceretryTimeout- the store retry timeout, in ms- Returns:
- the session store
-