Package io.vertx.ext.web.sstore
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 SummaryFields Modifier and Type Field Description static longDEFAULT_REAPER_INTERVALDefault of how often, in ms, to check for expired sessionsstatic StringDEFAULT_SESSION_MAP_NAMEDefault name for map used to store sessions- 
Fields inherited from interface io.vertx.ext.web.sstore.SessionStoreDEFAULT_SESSIONID_LENGTH
 
- 
 - 
Method SummaryStatic Methods Modifier and Type Method Description static LocalSessionStorecreate(Vertx vertx)Create a session storestatic LocalSessionStorecreate(Vertx vertx, String sessionMapName)Create a session storestatic LocalSessionStorecreate(Vertx vertx, String sessionMapName, long reaperInterval)Create a session store- 
Methods inherited from interface io.vertx.ext.web.sstore.SessionStoreclear, close, createSession, createSession, delete, get, init, put, retryTimeout, size
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_REAPER_INTERVALstatic final long DEFAULT_REAPER_INTERVAL Default of how often, in ms, to check for expired sessions- See Also:
- Constant Field Values
 
 - 
DEFAULT_SESSION_MAP_NAMEstatic final String DEFAULT_SESSION_MAP_NAME Default name for map used to store sessions- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createstatic LocalSessionStore create(Vertx vertx) Create a session store- Parameters:
- vertx- the Vert.x instance
- Returns:
- the session store
 
 - 
createstatic 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
 
 - 
createstatic 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
 
 
- 
 
-