Class AbstractRedisHttpSessionConfiguration<T extends SessionRepository<? extends Session>>

java.lang.Object
org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration<T>
Type Parameters:
T - the SessionRepository type
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware
Direct Known Subclasses:
RedisHttpSessionConfiguration, RedisIndexedHttpSessionConfiguration

@Configuration(proxyBeanMethods=false) @Import(SpringHttpSessionConfiguration.class) public abstract class AbstractRedisHttpSessionConfiguration<T extends SessionRepository<? extends Session>> extends Object implements org.springframework.beans.factory.BeanClassLoaderAware
Base configuration class for Redis based SessionRepository implementations.
Since:
3.0.0
See Also:
  • Constructor Details

    • AbstractRedisHttpSessionConfiguration

      public AbstractRedisHttpSessionConfiguration()
  • Method Details

    • sessionRepository

      public abstract T sessionRepository()
    • setMaxInactiveInterval

      public void setMaxInactiveInterval(Duration maxInactiveInterval)
    • setMaxInactiveIntervalInSeconds

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

      protected Duration getMaxInactiveInterval()
    • setRedisNamespace

      public void setRedisNamespace(String namespace)
    • getRedisNamespace

      protected String getRedisNamespace()
    • setFlushMode

      public void setFlushMode(FlushMode flushMode)
    • getFlushMode

      protected FlushMode getFlushMode()
    • setSaveMode

      public void setSaveMode(SaveMode saveMode)
    • getSaveMode

      protected SaveMode getSaveMode()
    • setRedisConnectionFactory

      @Autowired public void setRedisConnectionFactory(@SpringSessionRedisConnectionFactory org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> springSessionRedisConnectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.data.redis.connection.RedisConnectionFactory> redisConnectionFactory)
    • getRedisConnectionFactory

      protected org.springframework.data.redis.connection.RedisConnectionFactory getRedisConnectionFactory()
    • setDefaultRedisSerializer

      @Autowired(required=false) @Qualifier("springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(org.springframework.data.redis.serializer.RedisSerializer<Object> defaultRedisSerializer)
    • getDefaultRedisSerializer

      protected org.springframework.data.redis.serializer.RedisSerializer<Object> getDefaultRedisSerializer()
    • setSessionRepositoryCustomizer

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

      protected List<SessionRepositoryCustomizer<T>> getSessionRepositoryCustomizers()
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • createRedisTemplate

      protected org.springframework.data.redis.core.RedisTemplate<String,Object> createRedisTemplate()