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:
  • Constructor Details

    • GemFireOperationsSessionRepositorySupport

      protected GemFireOperationsSessionRepositorySupport()
      Construct an uninitialized instance of GemFireOperationsSessionRepositorySupport.
      See Also:
    • GemFireOperationsSessionRepositorySupport

      public 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.
      Parameters:
      gemfireOperations - GemfireOperations for performing data access operations on the Region used to manage Session state.
      See Also:
      • GemfireOperations
  • Method Details

    • createSession

      public org.springframework.session.Session createSession()
    • deleteById

      public void deleteById(String id)
    • findById

      public org.springframework.session.Session findById(String id)
    • findByIndexNameAndIndexValue

      public Map<String,org.springframework.session.Session> findByIndexNameAndIndexValue(String indexName, String indexValue)
    • save

      public void save(org.springframework.session.Session session)