Class HotRodSessionRepository

java.lang.Object
org.wildfly.clustering.web.spring.hotrod.HotRodSessionRepository
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.session.FindByIndexNameSessionRepository<SpringSession>, org.springframework.session.SessionRepository<SpringSession>

public class HotRodSessionRepository extends Object implements org.springframework.session.FindByIndexNameSessionRepository<SpringSession>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
A session repository whose sessions are persisted to a remote Infinispan cluster accessed via HotRod.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • createSession

      public SpringSession createSession()
      Specified by:
      createSession in interface org.springframework.session.SessionRepository<SpringSession>
    • findById

      public SpringSession findById(String id)
      Specified by:
      findById in interface org.springframework.session.SessionRepository<SpringSession>
    • deleteById

      public void deleteById(String id)
      Specified by:
      deleteById in interface org.springframework.session.SessionRepository<SpringSession>
    • save

      public void save(SpringSession session)
      Specified by:
      save in interface org.springframework.session.SessionRepository<SpringSession>
    • findByIndexNameAndIndexValue

      public Map<String,SpringSession> findByIndexNameAndIndexValue(String indexName, String indexValue)
      Specified by:
      findByIndexNameAndIndexValue in interface org.springframework.session.FindByIndexNameSessionRepository<SpringSession>