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 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) voidsetFlushMode(FlushMode flushMode) voidsetHazelcast4SessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<org.springframework.session.hazelcast.Hazelcast4IndexedSessionRepository>> sessionRepositoryCustomizers) voidsetHazelcastFlushMode(HazelcastFlushMode hazelcastFlushMode) Deprecated.voidsetHazelcastInstance(org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> springSessionHazelcastInstance, org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> hazelcastInstance) voidsetImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) voidsetIndexResolver(IndexResolver<Session> indexResolver) voidsetMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) voidsetSaveMode(SaveMode saveMode) voidsetSessionMapName(String sessionMapName) voidsetSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers) Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter
-
Constructor Details
-
HazelcastHttpSessionConfiguration
public HazelcastHttpSessionConfiguration()
-
-
Method Details
-
sessionRepository
-
setMaxInactiveIntervalInSeconds
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) -
setSessionMapName
-
setHazelcastFlushMode
Deprecated. -
setFlushMode
-
setSaveMode
-
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
-
setSessionRepositoryCustomizer
@Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers) -
setHazelcast4SessionRepositoryCustomizer
@Autowired(required=false) public void setHazelcast4SessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<org.springframework.session.hazelcast.Hazelcast4IndexedSessionRepository>> sessionRepositoryCustomizers) -
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain interfaceorg.springframework.context.annotation.ImportAware
-