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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setApplicationEventPublisher
(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) void
setFlushMode
(FlushMode flushMode) 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
(IndexResolver<Session> indexResolver) void
setMaxInactiveInterval
(Duration maxInactiveInterval) void
setMaxInactiveIntervalInSeconds
(int maxInactiveIntervalInSeconds) Deprecated.void
setSaveMode
(SaveMode saveMode) void
setSessionMapName
(String sessionMapName) void
setSessionRepositoryCustomizer
(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
-
Constructor Details
-
HazelcastHttpSessionConfiguration
public HazelcastHttpSessionConfiguration()
-
-
Method Details
-
sessionRepository
-
setMaxInactiveInterval
-
setMaxInactiveIntervalInSeconds
Deprecated. -
setSessionMapName
-
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) -
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-