@ConfigurationProperties(value="redis") public class RedisHttpSessionConfiguration extends HttpSessionConfiguration implements Toggleable
DEFAULT_BASE64ENCODE, DEFAULT_COOKIENAME, DEFAULT_REMEMBERMEDEFAULT_MAXINACTIVEINTERVAL_SECONDS| Constructor and Description |
|---|
RedisHttpSessionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActiveSessionsKey() |
Charset |
getCharset() |
Duration |
getExpiredSessionCheck() |
String |
getNamespace() |
Optional<String> |
getServerName() |
String |
getSessionCreatedTopic() |
Optional<Class<ObjectSerializer>> |
getValueSerializer() |
io.micronaut.configuration.lettuce.session.RedisHttpSessionConfiguration.WriteMode |
getWriteMode() |
boolean |
isEnableKeyspaceEvents() |
void |
setActiveSessionsKey(String activeSessionsKey)
Sets the key to store active sessions in.
|
void |
setCharset(Charset charset)
Sets the charset to use to serialize values.
|
void |
setEnableKeyspaceEvents(boolean enableKeyspaceEvents)
Sets whether keyspace events should be enabled at startup.
|
void |
setExpiredSessionCheck(Duration expiredSessionCheck)
Sets the duration to check for expired sessions.
|
void |
setNamespace(String namespace)
Sets the namespace to use.
|
void |
setServerName(String serverName)
Sets the server name.
|
void |
setSessionCreatedTopic(String sessionCreatedTopic)
Sets the topic to publish session created events to.
|
void |
setValueSerializer(Class<ObjectSerializer> valueSerializer)
Sets the default value serializer to use.
|
void |
setWriteMode(io.micronaut.configuration.lettuce.session.RedisHttpSessionConfiguration.WriteMode writeMode)
Sets the write mode to use.
|
getCookieMaxAge, getCookieName, getCookiePath, getDomainName, getHeaderNames, getPrefix, isBase64Encode, isRememberMe, setBase64Encode, setCookieMaxAge, setCookieName, setCookiePath, setDomainName, setHeaderNames, setPrefix, setRememberMegetMaxActiveSessions, getMaxInactiveInterval, setMaxActiveSessions, setMaxInactiveIntervalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEnabledpublic String getNamespace()
public Optional<String> getServerName()
public String getSessionCreatedTopic()
public String getActiveSessionsKey()
public Optional<Class<ObjectSerializer>> getValueSerializer()
ObjectSerializer type to use for serializing values. Defaults to JdkSerializerpublic Charset getCharset()
public boolean isEnableKeyspaceEvents()
public io.micronaut.configuration.lettuce.session.RedisHttpSessionConfiguration.WriteMode getWriteMode()
RedisHttpSessionConfiguration.WriteMode to use. Defaults to RedisHttpSessionConfiguration.WriteMode.BATCHpublic Duration getExpiredSessionCheck()
public void setNamespace(String namespace)
namespace - The namespacepublic void setServerName(String serverName)
serverName - The server namepublic void setSessionCreatedTopic(String sessionCreatedTopic)
sessionCreatedTopic - The session created topicpublic void setActiveSessionsKey(String activeSessionsKey)
activeSessionsKey - The active session keypublic void setValueSerializer(Class<ObjectSerializer> valueSerializer)
valueSerializer - The value serializerpublic void setCharset(Charset charset)
charset - The default charsetpublic void setEnableKeyspaceEvents(boolean enableKeyspaceEvents)
enableKeyspaceEvents - True if keyspace event should be enabledpublic void setWriteMode(io.micronaut.configuration.lettuce.session.RedisHttpSessionConfiguration.WriteMode writeMode)
writeMode - The write modepublic void setExpiredSessionCheck(Duration expiredSessionCheck)
expiredSessionCheck - The expired session check