Class GemFireOperationsSessionRepositorySupport
java.lang.Object
org.springframework.session.data.gemfire.AbstractGemFireOperationsSessionRepository
org.springframework.session.data.gemfire.support.GemFireOperationsSessionRepositorySupport
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.session.FindByIndexNameSessionRepository<org.springframework.session.Session>
,org.springframework.session.SessionRepository<org.springframework.session.Session>
public abstract class GemFireOperationsSessionRepositorySupport
extends AbstractGemFireOperationsSessionRepository
Framework supporting class for
AbstractGemFireOperationsSessionRepository
implementations.
By default, all SessionRepository
data access operations throw an UnsupportedOperationException
.
Therefore, you are free to implement only the SessionRepository
data access operations you need.
For instance, if you only want to implement a read-only SessionRepository
, then you can simply
override the findById(String)
, findByIndexNameAndIndexValue(String, String)
and FindByIndexNameSessionRepository.findByPrincipalName(String)
Repository methods. In that way, the Session
can never be updated.- Since:
- 2.1.1
- See Also:
-
Region
GemfireOperations
Session
AbstractGemFireOperationsSessionRepository
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.session.data.gemfire.AbstractGemFireOperationsSessionRepository
AbstractGemFireOperationsSessionRepository.DeltaCapableGemFireSession, AbstractGemFireOperationsSessionRepository.DeltaCapableGemFireSessionAttributes, AbstractGemFireOperationsSessionRepository.GemFireSession<T extends AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes>, AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes, AbstractGemFireOperationsSessionRepository.SessionEventHandlerCacheListenerAdapter, AbstractGemFireOperationsSessionRepository.SessionIdInterestRegisteringCacheListener
-
Field Summary
Fields inherited from interface org.springframework.session.FindByIndexNameSessionRepository
PRINCIPAL_NAME_INDEX_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Construct an uninitialized instance ofGemFireOperationsSessionRepositorySupport
.GemFireOperationsSessionRepositorySupport
(org.springframework.data.gemfire.GemfireOperations gemfireOperations) Constructs a new instance ofGemFireOperationsSessionRepositorySupport
initialized with the givenGemfireOperations
object used to performRegion
data access operations managing theSession
state. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.session.Session
void
deleteById
(String id) org.springframework.session.Session
findByIndexNameAndIndexValue
(String indexName, String indexValue) void
save
(org.springframework.session.Session session) Methods inherited from class org.springframework.session.data.gemfire.AbstractGemFireOperationsSessionRepository
commit, configure, delete, getApplicationEventPublisher, getIsDirtyPredicate, getLogger, getMaxInactiveInterval, getMaxInactiveIntervalInSeconds, getSessionEventHandler, getSessionsRegion, getSessionsRegionName, getSessionsTemplate, getTemplate, handleDeleted, isRegisterInterestEnabled, isUsingDataSerialization, newSessionEventHandler, newSessionIdInterestRegistrar, publishEvent, registerInterest, registerInterest, resolvePool, setApplicationEventPublisher, setIsDirtyPredicate, setMaxInactiveInterval, setMaxInactiveIntervalInSeconds, setUseDataSerialization, touch, unregisterInterest, unregisterInterest
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.session.FindByIndexNameSessionRepository
findByPrincipalName
-
Constructor Details
-
GemFireOperationsSessionRepositorySupport
protected GemFireOperationsSessionRepositorySupport()Construct an uninitialized instance ofGemFireOperationsSessionRepositorySupport
. -
GemFireOperationsSessionRepositorySupport
public GemFireOperationsSessionRepositorySupport(org.springframework.data.gemfire.GemfireOperations gemfireOperations) Constructs a new instance ofGemFireOperationsSessionRepositorySupport
initialized with the givenGemfireOperations
object used to performRegion
data access operations managing theSession
state.- Parameters:
gemfireOperations
-GemfireOperations
for performing data access operations on theRegion
used to manageSession
state.- See Also:
-
GemfireOperations
-
-
Method Details
-
createSession
public org.springframework.session.Session createSession() -
deleteById
-
findById
-
findByIndexNameAndIndexValue
-
save
public void save(org.springframework.session.Session session)
-