Class HazelcastHttpSessionConfiguration

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

@Configuration(proxyBeanMethods=false) @Import(SpringHttpSessionConfiguration.class) public class HazelcastHttpSessionConfiguration extends Object 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 Details

    • HazelcastHttpSessionConfiguration

      public HazelcastHttpSessionConfiguration()
  • Method Details

    • sessionRepository

      @Bean public FindByIndexNameSessionRepository<?> sessionRepository()
    • setMaxInactiveInterval

      public void setMaxInactiveInterval(Duration maxInactiveInterval)
    • setMaxInactiveIntervalInSeconds

      @Deprecated public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
      Deprecated.
    • setSessionMapName

      public void setSessionMapName(String sessionMapName)
    • setFlushMode

      public void setFlushMode(FlushMode flushMode)
    • setSaveMode

      public void setSaveMode(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(IndexResolver<Session> indexResolver)
    • setSessionRepositoryCustomizer

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

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

      @Autowired(required=false) public void setSessionIdGenerator(SessionIdGenerator sessionIdGenerator)