Class AbstractLettuceSessionStore
- java.lang.Object
-
- com.aspectran.core.component.AbstractComponent
-
- com.aspectran.core.component.session.AbstractSessionStore
-
- com.aspectran.core.component.session.redis.lettuce.AbstractLettuceSessionStore
-
- All Implemented Interfaces:
Component,SessionStore
- Direct Known Subclasses:
ClusterLettuceSessionStore,DefaultLettuceSessionStore
public abstract class AbstractLettuceSessionStore 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()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancheckExpiry(SessionData data)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 abstract voidscan(java.util.function.Consumer<SessionData> func)-
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, doDestroy, doInitialize, 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
-
-
-
-
Method Detail
-
scan
protected abstract void scan(java.util.function.Consumer<SessionData> func)
-
doGetExpired
public java.util.Set<java.lang.String> doGetExpired(java.util.Set<java.lang.String> candidates)
Description copied from class:AbstractSessionStoreImplemented by subclasses to resolve which sessions this node should attempt to expire.- Specified by:
doGetExpiredin 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)
-
-