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
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 original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<LocalSessionStore> static final longDefault of how often, in ms, to check for expired sessionsstatic final StringDefault name for map used to store sessionsstatic final intDefault length for a session id. -
Constructor Summary
ConstructorsConstructorDescriptionLocalSessionStore(LocalSessionStore delegate) LocalSessionStore(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalSessionStoreCreate a session storestatic LocalSessionStoreCreate a session storestatic LocalSessionStoreCreate a session storebooleaninthashCode()static LocalSessionStoretoString()Methods inherited from class SessionStore
clear, close, create, createSession, createSession, delete, get, init, newInstance, put, retryTimeout, rxClear, rxDelete, rxGet, rxPut, rxSize, size
-
Field Details
-
__TYPE_ARG
-
DEFAULT_SESSIONID_LENGTH
public static final int DEFAULT_SESSIONID_LENGTHDefault length for a session id. More info: https://www.owasp.org/index.php/Session_Management_Cheat_Sheet- See Also:
-
DEFAULT_REAPER_INTERVAL
public static final long DEFAULT_REAPER_INTERVALDefault of how often, in ms, to check for expired sessions- See Also:
-
DEFAULT_SESSION_MAP_NAME
Default name for map used to store sessions- See Also:
-
-
Constructor Details
-
LocalSessionStore
-
LocalSessionStore
-
-
Method Details
-
toString
- Overrides:
toStringin classSessionStore
-
equals
- Overrides:
equalsin classSessionStore
-
hashCode
public int hashCode()- Overrides:
hashCodein classSessionStore
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classSessionStore
-
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
-
newInstance
-