Class HazelcastHttpSessionConfiguration

java.lang.Object
org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
org.springframework.session.hazelcast.config.annotation.web.http.HazelcastHttpSessionConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.annotation.ImportAware, org.springframework.context.ApplicationContextAware

@Configuration(proxyBeanMethods=false) public class HazelcastHttpSessionConfiguration extends org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration implements org.springframework.context.annotation.ImportAware
Exposes the SessionRepositoryFilter as a bean named springSessionRepositoryFilter. In order to use this a single HazelcastInstance must be exposed as a Bean.
Since:
1.1
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.session.FindByIndexNameSessionRepository<?>
     
    void
    setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
     
    void
    setFlushMode(org.springframework.session.FlushMode flushMode)
     
    void
    setHazelcast4SessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<org.springframework.session.hazelcast.Hazelcast4IndexedSessionRepository>> sessionRepositoryCustomizers)
     
    void
    Deprecated.
    void
    setHazelcastInstance(org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> springSessionHazelcastInstance, org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> hazelcastInstance)
     
    void
    setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
     
    void
    setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver)
     
    void
    setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
     
    void
    setSaveMode(org.springframework.session.SaveMode saveMode)
     
    void
    setSessionMapName(String sessionMapName)
     
    void
    setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
     

    Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration

    init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HazelcastHttpSessionConfiguration

      public HazelcastHttpSessionConfiguration()
  • Method Details

    • sessionRepository

      @Bean public org.springframework.session.FindByIndexNameSessionRepository<?> sessionRepository()
    • setMaxInactiveIntervalInSeconds

      public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
    • setSessionMapName

      public void setSessionMapName(String sessionMapName)
    • setHazelcastFlushMode

      @Deprecated public void setHazelcastFlushMode(HazelcastFlushMode hazelcastFlushMode)
      Deprecated.
    • setFlushMode

      public void setFlushMode(org.springframework.session.FlushMode flushMode)
    • setSaveMode

      public void setSaveMode(org.springframework.session.SaveMode saveMode)
    • setHazelcastInstance

      @Autowired public void setHazelcastInstance(@SpringSessionHazelcastInstance org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> springSessionHazelcastInstance, org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> hazelcastInstance)
    • setApplicationEventPublisher

      @Autowired public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
    • setIndexResolver

      @Autowired(required=false) public void setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver)
    • setSessionRepositoryCustomizer

      @Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
    • setHazelcast4SessionRepositoryCustomizer

      @Autowired(required=false) public void setHazelcast4SessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<org.springframework.session.hazelcast.Hazelcast4IndexedSessionRepository>> sessionRepositoryCustomizers)
    • setImportMetadata

      public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
      Specified by:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware