Package io.jmix.sessions.impl
Class JmixExpiringSessionMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<String,org.springframework.session.Session>
io.jmix.sessions.impl.JmixExpiringSessionMap
- All Implemented Interfaces:
Serializable
,ConcurrentMap<String,
,org.springframework.session.Session> Map<String,
,org.springframework.session.Session> org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class JmixExpiringSessionMap
extends ConcurrentHashMap<String,org.springframework.session.Session>
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Map
implementation for MapSessionRepository
that periodically removes expired sessions.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,
V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJmixExpiringSessionMap
(org.springframework.context.ApplicationEventPublisher applicationEventPublisher, SessionsProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
destroy()
void
setCleanupTimeout
(Duration cleanupTimeout) Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
Methods inherited from class java.util.AbstractMap
clone
-
Field Details
-
cleanupEnabled
-
cleanupTimeout
-
applicationEventPublisher
protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
-
-
Constructor Details
-
JmixExpiringSessionMap
public JmixExpiringSessionMap(org.springframework.context.ApplicationEventPublisher applicationEventPublisher, SessionsProperties properties)
-
-
Method Details
-
setCleanupTimeout
-
cleanUpExpiredSessions
public void cleanUpExpiredSessions() -
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-