Class AbstractLettuceSessionStore<T>
- java.lang.Object
-
- com.aspectran.core.component.AbstractComponent
-
- com.aspectran.core.component.session.AbstractSessionStore
-
- com.aspectran.core.component.session.redis.lettuce.AbstractLettuceSessionStore<T>
-
- All Implemented Interfaces:
Component
,SessionStore
- Direct Known Subclasses:
ClusterLettuceSessionStore
,DefaultLettuceSessionStore
public abstract class AbstractLettuceSessionStore<T> extends AbstractSessionStore
A Redis-based session store using Lettuce as the client.Created: 2019/12/06
- Since:
- 6.6.0
-
-
Constructor Summary
Constructors Constructor Description AbstractLettuceSessionStore(ConnectionPool<T> pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
calculateTimeout(SessionData data)
protected boolean
checkExpiry(SessionData data)
protected void
doDestroy()
java.util.Set<java.lang.String>
doGetExpired(java.util.Set<java.lang.String> candidates)
Implemented by subclasses to resolve which sessions this node should attempt to expire.protected void
doInitialize()
protected ConnectionPool<T>
getConnectionPool()
-
Methods inherited from class com.aspectran.core.component.session.AbstractSessionStore
checkAlreadyInitialized, doSave, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aspectran.core.component.Component
destroy, getComponentName, initialize, isAvailable, isDestroyed, isDestroying, isInitialized
-
Methods inherited from interface com.aspectran.core.component.session.SessionStore
delete, exists, load
-
-
-
-
Constructor Detail
-
AbstractLettuceSessionStore
public AbstractLettuceSessionStore(ConnectionPool<T> pool)
-
-
Method Detail
-
getConnectionPool
protected ConnectionPool<T> getConnectionPool()
-
doGetExpired
public java.util.Set<java.lang.String> doGetExpired(java.util.Set<java.lang.String> candidates)
Description copied from class:AbstractSessionStore
Implemented by subclasses to resolve which sessions this node should attempt to expire.- Specified by:
doGetExpired
in classAbstractSessionStore
- Parameters:
candidates
- the ids of sessions the SessionStore thinks has expired- Returns:
- the reconciled set of session ids that this node should attempt to expire
-
checkExpiry
protected boolean checkExpiry(SessionData data)
-
calculateTimeout
protected long calculateTimeout(SessionData data)
-
doInitialize
protected void doInitialize() throws java.lang.Exception
- Specified by:
doInitialize
in classAbstractComponent
- Throws:
java.lang.Exception
-
doDestroy
protected void doDestroy() throws java.lang.Exception
- Specified by:
doDestroy
in classAbstractComponent
- Throws:
java.lang.Exception
-
-