Class RedisSessionStore
- java.lang.Object
-
- io.vertx.mutiny.ext.web.sstore.SessionStore
-
- io.vertx.mutiny.ext.web.sstore.redis.RedisSessionStore
-
public class RedisSessionStore extends SessionStore
A SessionStore that uses a Redis to store the sessions and associated data. This assumes that the redis logical database (i.e. select) is only used to store the sessions to make size query reliable. 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<RedisSessionStore>
__TYPE_ARG
static long
DEFAULT_RETRY_TIMEOUT_MS
static int
DEFAULT_SESSIONID_LENGTH
-
Constructor Summary
Constructors Constructor Description RedisSessionStore(io.vertx.ext.web.sstore.redis.RedisSessionStore delegate)
RedisSessionStore(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RedisSessionStore
create(Vertx vertx, long retryTimeoutMs, Redis redis)
static RedisSessionStore
create(Vertx vertx, Redis redis)
boolean
equals(Object o)
io.vertx.ext.web.sstore.redis.RedisSessionStore
getDelegate()
int
hashCode()
static RedisSessionStore
newInstance(io.vertx.ext.web.sstore.redis.RedisSessionStore arg)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.web.sstore.SessionStore
clear, clearAndAwait, clearAndForget, close, create, 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<RedisSessionStore> __TYPE_ARG
-
DEFAULT_SESSIONID_LENGTH
public static final int DEFAULT_SESSIONID_LENGTH
- See Also:
- Constant Field Values
-
DEFAULT_RETRY_TIMEOUT_MS
public static final long DEFAULT_RETRY_TIMEOUT_MS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RedisSessionStore
public RedisSessionStore(io.vertx.ext.web.sstore.redis.RedisSessionStore delegate)
-
RedisSessionStore
public RedisSessionStore(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.sstore.redis.RedisSessionStore 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 RedisSessionStore create(Vertx vertx, Redis redis)
- Parameters:
vertx
- a Vert.x instanceredis
- A Redis client- Returns:
- the store
-
create
public static RedisSessionStore create(Vertx vertx, long retryTimeoutMs, Redis redis)
- Parameters:
vertx
- a Vert.x instanceretryTimeoutMs
- The time between two consecutive triesredis
- The given options to establish the connection- Returns:
- the store
-
newInstance
public static RedisSessionStore newInstance(io.vertx.ext.web.sstore.redis.RedisSessionStore arg)
-
-