Class AbstractGemFireOperationsSessionRepository.SessionIdInterestRegisteringCacheListener
java.lang.Object
org.apache.geode.cache.util.CacheListenerAdapter<Object,org.springframework.session.Session>
org.springframework.session.data.gemfire.AbstractGemFireOperationsSessionRepository.SessionIdInterestRegisteringCacheListener
- All Implemented Interfaces:
org.apache.geode.cache.CacheCallback
,org.apache.geode.cache.CacheListener<Object,
,org.springframework.session.Session> org.apache.geode.cache.Declarable
- Enclosing class:
- AbstractGemFireOperationsSessionRepository
protected static class AbstractGemFireOperationsSessionRepository.SessionIdInterestRegisteringCacheListener
extends org.apache.geode.cache.util.CacheListenerAdapter<Object,org.springframework.session.Session>
-
Constructor Summary
ConstructorsConstructorDescriptionSessionIdInterestRegisteringCacheListener
(AbstractGemFireOperationsSessionRepository sessionRepository) Constructs a new instance of theAbstractGemFireOperationsSessionRepository.SessionIdInterestRegisteringCacheListener
initialized with theAbstractGemFireOperationsSessionRepository
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCreate
(org.apache.geode.cache.EntryEvent<Object, org.springframework.session.Session> event) void
afterDestroy
(org.apache.geode.cache.EntryEvent<Object, org.springframework.session.Session> event) void
afterInvalidate
(org.apache.geode.cache.EntryEvent<Object, org.springframework.session.Session> event) Returns a reference to the configuredSessionRepository
.Methods inherited from class org.apache.geode.cache.util.CacheListenerAdapter
afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionInvalidate, afterRegionLive, afterUpdate, close
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Constructor Details
-
SessionIdInterestRegisteringCacheListener
public SessionIdInterestRegisteringCacheListener(AbstractGemFireOperationsSessionRepository sessionRepository) Constructs a new instance of theAbstractGemFireOperationsSessionRepository.SessionIdInterestRegisteringCacheListener
initialized with theAbstractGemFireOperationsSessionRepository
.- Parameters:
sessionRepository
-AbstractGemFireOperationsSessionRepository
used by this listener to register and unregister interests inSessions
.- Throws:
IllegalArgumentException
- ifAbstractGemFireOperationsSessionRepository
is null.- See Also:
-
-
Method Details
-
getSessionRepository
Returns a reference to the configuredSessionRepository
.- Returns:
- a reference to the configured
SessionRepository
. - See Also:
-
afterCreate
public void afterCreate(org.apache.geode.cache.EntryEvent<Object, org.springframework.session.Session> event) -
afterDestroy
public void afterDestroy(org.apache.geode.cache.EntryEvent<Object, org.springframework.session.Session> event) -
afterInvalidate
public void afterInvalidate(org.apache.geode.cache.EntryEvent<Object, org.springframework.session.Session> event)
-