Modifier and Type | Method and Description |
---|---|
static SessionHandler |
SessionHandler.create(SessionStore sessionStore)
Create a session handler
|
Modifier and Type | Class and Description |
---|---|
class |
ClusteredSessionStore
A session store which stores sessions in a distributed map so they are available across the cluster.
|
class |
LocalSessionStore
A session store which is only available on a single node.
|
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SessionStore> |
SessionStore.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
SessionStore |
SessionStore.clear()
Remove all sessions from the store.
|
SessionStore |
SessionStore.clear(Handler<AsyncResult<Void>> resultHandler)
Remove all sessions from the store.
|
static SessionStore |
SessionStore.create(Vertx vertx)
Create a Session store given a backend and configuration JSON.
|
static SessionStore |
SessionStore.create(Vertx vertx,
JsonObject options)
Create a Session store given a backend and configuration JSON.
|
SessionStore |
SessionStore.delete(String id)
Delete the session with the specified ID.
|
SessionStore |
SessionStore.delete(String id,
Handler<AsyncResult<Void>> resultHandler)
Delete the session with the specified ID.
|
SessionStore |
SessionStore.get(String cookieValue)
Get the session with the specified ID.
|
SessionStore |
SessionStore.get(String cookieValue,
Handler<AsyncResult<Session>> resultHandler)
Get the session with the specified ID.
|
SessionStore |
SessionStore.init(Vertx vertx,
JsonObject options)
Initialize this store.
|
static SessionStore |
SessionStore.newInstance(SessionStore arg) |
SessionStore |
SessionStore.put(Session session)
Add a session with the specified ID.
|
SessionStore |
SessionStore.put(Session session,
Handler<AsyncResult<Void>> resultHandler)
Add a session with the specified ID.
|
SessionStore |
SessionStore.size()
Get the number of sessions in the store.
|
SessionStore |
SessionStore.size(Handler<AsyncResult<Integer>> resultHandler)
Get the number of sessions in the store.
|
Modifier and Type | Class and Description |
---|---|
class |
CookieSessionStore
A SessionStore that uses a Cookie to store the session data.
|
Modifier and Type | Class and Description |
---|---|
class |
InfinispanSessionStore
An implementation of that relies on the Infinispan Java Client.
|
Modifier and Type | Class and Description |
---|---|
class |
RedisSessionStore
A SessionStore that uses a Redis to store the sessions and associated data.
|
Copyright © 2024 Eclipse. All rights reserved.