vertx / io.vertx.ext.web.sstore / ClusteredSessionStore

ClusteredSessionStore

interface ClusteredSessionStore : SessionStore

A session store which stores sessions in a distributed map so they are available across the cluster.

Author
Tim Fox

Properties

DEFAULT_RETRY_TIMEOUT

static val DEFAULT_RETRY_TIMEOUT: Long

Default retry time out, in ms, for a session not found in this store.

DEFAULT_SESSION_MAP_NAME

static val DEFAULT_SESSION_MAP_NAME: String

The default name used for the session map

Functions

create

open static fun create(vertx: Vertx, sessionMapName: String): ClusteredSessionStore
open static fun create(vertx: Vertx): ClusteredSessionStore

Create a session store

open static fun create(vertx: Vertx, sessionMapName: String, retryTimeout: Long): ClusteredSessionStore
open static fun create(vertx: Vertx, retryTimeout: Long): ClusteredSessionStore

Create a session store. The retry timeout value, configures how long the session handler will retry to get a session from the store when it is not found.