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:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.annotation.ImportAware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
CoherenceSpringSessionAutoConfiguration.SpringBootCoherenceHttpSessionConfiguration

@Configuration(proxyBeanMethods=false) public class CoherenceHttpSessionConfiguration 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, CoherenceSpringConfiguration must be active as well, typically using the EnableCoherence annotation.
Since:
3.0
Author:
Gunnar Hillert
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.session.FindByIndexNameSessionRepository<?>
     
    void
    setCoherence(org.springframework.beans.factory.ObjectProvider<com.tangosol.net.Coherence> springSessionCoherenceInstance, org.springframework.beans.factory.ObjectProvider<com.tangosol.net.Coherence> coherenceInstance)
     
    void
    setFlushMode(org.springframework.session.FlushMode flushMode)
     
    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
    setSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator)
     
    void
    setSessionMapName(String sessionMapName)
     
    void
    setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<CoherenceIndexedSessionRepository>> sessionRepositoryCustomizers)
     
    void
    setUseEntryProcessor(boolean useEntryProcessor)
     

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

    afterPropertiesSet, 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

    • CoherenceHttpSessionConfiguration

      public CoherenceHttpSessionConfiguration()
  • Method Details

    • sessionRepository

      @Bean @DependsOn("coherenceServer") public org.springframework.session.FindByIndexNameSessionRepository<?> sessionRepository()
    • setCoherence

      @Autowired public void setCoherence(@SpringSessionCoherenceInstance org.springframework.beans.factory.ObjectProvider<com.tangosol.net.Coherence> springSessionCoherenceInstance, org.springframework.beans.factory.ObjectProvider<com.tangosol.net.Coherence> coherenceInstance)
    • setImportMetadata

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

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

      @Autowired(required=false) public void setSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator)
    • setSessionRepositoryCustomizer

      @Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.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)
    • setUseEntryProcessor

      public void setUseEntryProcessor(boolean useEntryProcessor)