Class LocalSessionStore
- java.lang.Object
-
- io.vertx.reactivex.ext.web.sstore.SessionStore
-
- io.vertx.reactivex.ext.web.sstore.LocalSessionStore
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class LocalSessionStore extends SessionStore implements io.vertx.lang.rx.RxDelegate
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.
NOTE: This class has been automatically generated from the
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<LocalSessionStore>__TYPE_ARGstatic longDEFAULT_REAPER_INTERVALDefault of how often, in ms, to check for expired sessionsstatic StringDEFAULT_SESSION_MAP_NAMEDefault name for map used to store sessionsstatic intDEFAULT_SESSIONID_LENGTHDefault length for a session id.
-
Constructor Summary
Constructors Constructor Description LocalSessionStore(LocalSessionStore delegate)LocalSessionStore(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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 storebooleanequals(Object o)LocalSessionStoregetDelegate()inthashCode()static LocalSessionStorenewInstance(LocalSessionStore arg)StringtoString()-
Methods inherited from class io.vertx.reactivex.ext.web.sstore.SessionStore
clear, close, create, createSession, createSession, delete, get, init, newInstance, put, retryTimeout, rxClear, rxDelete, rxGet, rxPut, rxSize, size
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.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(LocalSessionStore delegate)
-
LocalSessionStore
public LocalSessionStore(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classSessionStore
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSessionStore
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSessionStore
-
getDelegate
public LocalSessionStore getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classSessionStore
-
create
public static LocalSessionStore create(Vertx vertx)
Create a session store- Parameters:
vertx- the Vert.x instance- Returns:
- the session store
-
create
public static LocalSessionStore create(Vertx vertx, String sessionMapName)
Create a session store- 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)
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
-
newInstance
public static LocalSessionStore newInstance(LocalSessionStore arg)
-
-