public abstract class GemFireOperationsSessionRepositorySupport extends AbstractGemFireOperationsSessionRepository
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.Region,
GemfireOperations,
Session,
AbstractGemFireOperationsSessionRepositoryAbstractGemFireOperationsSessionRepository.DeltaCapableGemFireSession, AbstractGemFireOperationsSessionRepository.DeltaCapableGemFireSessionAttributes, AbstractGemFireOperationsSessionRepository.GemFireSession<T extends AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes>, AbstractGemFireOperationsSessionRepository.GemFireSessionAttributes, AbstractGemFireOperationsSessionRepository.SessionEventHandlerCacheListenerAdapter, AbstractGemFireOperationsSessionRepository.SessionIdInterestRegisteringCacheListener| Modifier | Constructor and Description |
|---|---|
protected |
GemFireOperationsSessionRepositorySupport()
Construct an uninitialized instance of
GemFireOperationsSessionRepositorySupport. |
|
GemFireOperationsSessionRepositorySupport(org.springframework.data.gemfire.GemfireOperations gemfireOperations)
Constructs a new instance of
GemFireOperationsSessionRepositorySupport initialized with
the given GemfireOperations object used to perform Region data access operations
managing the Session state. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.session.Session |
createSession() |
void |
deleteById(java.lang.String id) |
org.springframework.session.Session |
findById(java.lang.String id) |
java.util.Map<java.lang.String,org.springframework.session.Session> |
findByIndexNameAndIndexValue(java.lang.String indexName,
java.lang.String indexValue) |
void |
save(org.springframework.session.Session session) |
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, unregisterInterestprotected GemFireOperationsSessionRepositorySupport()
GemFireOperationsSessionRepositorySupport.public GemFireOperationsSessionRepositorySupport(org.springframework.data.gemfire.GemfireOperations gemfireOperations)
GemFireOperationsSessionRepositorySupport initialized with
the given GemfireOperations object used to perform Region data access operations
managing the Session state.gemfireOperations - GemfireOperations for performing data access operations
on the Region used to manage Session state.GemfireOperationspublic org.springframework.session.Session createSession()
public void deleteById(java.lang.String id)
public org.springframework.session.Session findById(java.lang.String id)
public java.util.Map<java.lang.String,org.springframework.session.Session> findByIndexNameAndIndexValue(java.lang.String indexName,
java.lang.String indexValue)
public void save(org.springframework.session.Session session)