Package io.vertx.mutiny.ext.web.sstore
Class LocalSessionStore
- java.lang.Object
-
- io.vertx.mutiny.ext.web.sstore.SessionStore
-
- io.vertx.mutiny.ext.web.sstore.LocalSessionStore
-
public class LocalSessionStore extends SessionStore
A session store which is only available on a single node.Can be used when sticky sessions are being used.
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<LocalSessionStore>
__TYPE_ARG
static long
DEFAULT_REAPER_INTERVAL
Default of how often, in ms, to check for expired sessionsstatic String
DEFAULT_SESSION_MAP_NAME
Default name for map used to store sessionsstatic int
DEFAULT_SESSIONID_LENGTH
Default length for a session id.
-
Constructor Summary
Constructors Constructor Description LocalSessionStore(io.vertx.ext.web.sstore.LocalSessionStore delegate)
LocalSessionStore(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalSessionStore
create(Vertx vertx)
static LocalSessionStore
create(Vertx vertx, String sessionMapName)
static LocalSessionStore
create(Vertx vertx, String sessionMapName, long reaperInterval)
boolean
equals(Object o)
io.vertx.ext.web.sstore.LocalSessionStore
getDelegate()
int
hashCode()
static LocalSessionStore
newInstance(io.vertx.ext.web.sstore.LocalSessionStore arg)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.web.sstore.SessionStore
clear, clearAndAwait, clearAndForget, close, create, createSession, createSession, delete, deleteAndAwait, deleteAndForget, get, getAndAwait, getAndForget, init, newInstance, put, putAndAwait, putAndForget, retryTimeout, size, sizeAndAwait, sizeAndForget
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<LocalSessionStore> __TYPE_ARG
-
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(io.vertx.ext.web.sstore.LocalSessionStore delegate)
-
LocalSessionStore
public LocalSessionStore(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.sstore.LocalSessionStore getDelegate()
- Overrides:
getDelegate
in classSessionStore
-
toString
public String toString()
- Overrides:
toString
in classSessionStore
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSessionStore
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSessionStore
-
create
public static LocalSessionStore create(Vertx vertx)
- Parameters:
vertx
- the Vert.x instance- Returns:
- the session store
-
create
public static LocalSessionStore create(Vertx vertx, String sessionMapName)
- Parameters:
vertx
- the Vert.x instancesessionMapName
- name for map used to store sessions- Returns:
- the session store
-
create
public static LocalSessionStore create(Vertx vertx, String sessionMapName, long reaperInterval)
- 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
-
newInstance
public static LocalSessionStore newInstance(io.vertx.ext.web.sstore.LocalSessionStore arg)
-
-