Class ClusterLettuceSessionStore
- java.lang.Object
-
- com.aspectran.core.component.AbstractComponent
-
- com.aspectran.core.component.session.AbstractSessionStore
-
- com.aspectran.core.component.session.redis.lettuce.AbstractLettuceSessionStore
-
- com.aspectran.core.component.session.redis.lettuce.cluster.ClusterLettuceSessionStore
-
- All Implemented Interfaces:
com.aspectran.core.component.Component,com.aspectran.core.component.session.SessionStore
public class ClusterLettuceSessionStore extends AbstractLettuceSessionStore
A Redis-based session store using Lettuce as the client.Created: 2019/12/06
- Since:
- 6.6.0
-
-
Constructor Summary
Constructors Constructor Description ClusterLettuceSessionStore(ConnectionPool<io.lettuce.core.cluster.api.StatefulRedisClusterConnection<java.lang.String,com.aspectran.core.component.session.SessionData>> pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete(java.lang.String id)protected voiddoDestroy()protected voiddoInitialize()voiddoSave(java.lang.String id, com.aspectran.core.component.session.SessionData data)booleanexists(java.lang.String id)com.aspectran.core.component.session.SessionDataload(java.lang.String id)voidscan(java.util.function.Consumer<com.aspectran.core.component.session.SessionData> func)-
Methods inherited from class com.aspectran.core.component.session.redis.lettuce.AbstractLettuceSessionStore
checkExpiry, doGetExpired
-
Methods inherited from class com.aspectran.core.component.session.AbstractSessionStore
checkAlreadyInitialized, getExpired, getGracePeriodSecs, getLastExpiryCheckTime, getNonPersistentAttributes, getSavePeriodSecs, isNonPersistentAttributes, save, setGracePeriodSecs, setNonPersistentAttributes, setSavePeriodSecs
-
Methods inherited from class com.aspectran.core.component.AbstractComponent
destroy, getComponentName, initialize, isAvailable, isDestroyed, isDestroying, isInitialized
-
-
-
-
Constructor Detail
-
ClusterLettuceSessionStore
public ClusterLettuceSessionStore(ConnectionPool<io.lettuce.core.cluster.api.StatefulRedisClusterConnection<java.lang.String,com.aspectran.core.component.session.SessionData>> pool)
-
-
Method Detail
-
doInitialize
protected void doInitialize() throws java.lang.Exception- Specified by:
doInitializein classcom.aspectran.core.component.AbstractComponent- Throws:
java.lang.Exception
-
doDestroy
protected void doDestroy() throws java.lang.Exception- Specified by:
doDestroyin classcom.aspectran.core.component.AbstractComponent- Throws:
java.lang.Exception
-
scan
public void scan(java.util.function.Consumer<com.aspectran.core.component.session.SessionData> func)
- Specified by:
scanin classAbstractLettuceSessionStore
-
load
public com.aspectran.core.component.session.SessionData load(java.lang.String id)
-
delete
public boolean delete(java.lang.String id)
-
exists
public boolean exists(java.lang.String id)
-
doSave
public void doSave(java.lang.String id, com.aspectran.core.component.session.SessionData data)- Specified by:
doSavein classcom.aspectran.core.component.session.AbstractSessionStore
-
-