Class CoherenceHttpSessionConfiguration
- java.lang.Object
-
- org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
-
- com.oracle.coherence.spring.session.config.annotation.web.http.CoherenceHttpSessionConfiguration
-
- All Implemented Interfaces:
Aware
,ImportAware
,ApplicationContextAware
- Direct Known Subclasses:
CoherenceSpringSessionAutoConfiguration.SpringBootCoherenceHttpSessionConfiguration
@Configuration(proxyBeanMethods=false) public class CoherenceHttpSessionConfiguration extends org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration implements ImportAware
Exposes theSessionRepositoryFilter
as a bean namedspringSessionRepositoryFilter
. In order to use this,CoherenceSpringConfiguration
must be active as well, typically using theEnableCoherence
annotation.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
EnableCoherenceHttpSession
,EnableCoherence
-
-
Constructor Summary
Constructors Constructor Description CoherenceHttpSessionConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.session.FindByIndexNameSessionRepository<?>
sessionRepository()
void
setCoherence(ObjectProvider<com.tangosol.net.Coherence> springSessionCoherenceInstance, ObjectProvider<com.tangosol.net.Coherence> coherenceInstance)
void
setFlushMode(org.springframework.session.FlushMode flushMode)
void
setImportMetadata(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(ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<CoherenceIndexedSessionRepository>> sessionRepositoryCustomizers)
-
Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter
-
-
-
-
Method Detail
-
sessionRepository
@Bean @DependsOn("coherenceServer") public org.springframework.session.FindByIndexNameSessionRepository<?> sessionRepository()
-
setCoherence
@Autowired public void setCoherence(@SpringSessionCoherenceInstance ObjectProvider<com.tangosol.net.Coherence> springSessionCoherenceInstance, ObjectProvider<com.tangosol.net.Coherence> coherenceInstance)
-
setImportMetadata
public void setImportMetadata(AnnotationMetadata importMetadata)
- Specified by:
setImportMetadata
in interfaceImportAware
-
setIndexResolver
@Autowired(required=false) public void setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver)
-
setSessionRepositoryCustomizer
@Autowired(required=false) public void setSessionRepositoryCustomizer(ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<CoherenceIndexedSessionRepository>> sessionRepositoryCustomizers)
-
setMaxInactiveIntervalInSeconds
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds)
-
setSessionMapName
public void setSessionMapName(String sessionMapName)
-
setFlushMode
public void setFlushMode(org.springframework.session.FlushMode flushMode)
-
setSaveMode
public void setSaveMode(org.springframework.session.SaveMode saveMode)
-
-