クラス RedisIndexedHttpSessionConfiguration
java.lang.ObjectSE
org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration<RedisIndexedSessionRepository>
org.springframework.session.data.redis.config.annotation.web.http.RedisIndexedHttpSessionConfiguration
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanClassLoaderAware
、org.springframework.context.annotation.ImportAware
、org.springframework.context.EmbeddedValueResolverAware
@Configuration(proxyBeanMethods=false)
public class RedisIndexedHttpSessionConfiguration
extends AbstractRedisHttpSessionConfiguration<RedisIndexedSessionRepository>
implements org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
RedisIndexedSessionRepository
による springSessionRepositoryFilter
という名前の Bean として SessionRepositoryFilter
を公開します。これを使用するには、単一の RedisConnectionFactory
を Bean として公開する必要があります。- 導入:
- 3.0.0
- 関連事項:
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明org.springframework.beans.factory.InitializingBean
void
setApplicationEventPublisher
(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) void
setCleanupCron
(StringSE cleanupCron) void
setConfigureRedisAction
(ConfigureRedisAction configureRedisAction) Redis を構成するために実行するアクションを設定します。void
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver resolver) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setIndexResolver
(IndexResolver<Session> indexResolver) void
setRedisSubscriptionExecutor
(ExecutorSE redisSubscriptionExecutor) void
setRedisTaskExecutor
(ExecutorSE redisTaskExecutor) void
setSessionIdGenerator
(SessionIdGenerator sessionIdGenerator) org.springframework.data.redis.listener.RedisMessageListenerContainer
springSessionRedisMessageListenerContainer
(RedisIndexedSessionRepository sessionRepository) クラス org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration から継承されたメソッド
createRedisTemplate, getDefaultRedisSerializer, getFlushMode, getMaxInactiveInterval, getRedisConnectionFactory, getRedisNamespace, getSaveMode, getSessionRepositoryCustomizers, setBeanClassLoader, setDefaultRedisSerializer, setFlushMode, setMaxInactiveInterval, setMaxInactiveIntervalInSeconds, setRedisConnectionFactory, setRedisNamespace, setSaveMode, setSessionRepositoryCustomizer
コンストラクターの詳細
RedisIndexedHttpSessionConfiguration
public RedisIndexedHttpSessionConfiguration()
メソッドの詳細
sessionRepository
springSessionRedisMessageListenerContainer
@Bean public org.springframework.data.redis.listener.RedisMessageListenerContainer springSessionRedisMessageListenerContainer(RedisIndexedSessionRepository sessionRepository) enableRedisKeyspaceNotificationsInitializer
@Bean public org.springframework.beans.factory.InitializingBean enableRedisKeyspaceNotificationsInitializer()setCleanupCron
setConfigureRedisAction
@Autowired(required=false) public void setConfigureRedisAction(ConfigureRedisAction configureRedisAction) Redis を構成するために実行するアクションを設定します。- パラメーター:
configureRedisAction
- 設定する configureRedis。デフォルトはConfigureNotifyKeyspaceEventsAction
です。
setApplicationEventPublisher
@Autowired public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) setIndexResolver
setRedisTaskExecutor
@Autowired(required=false) @Qualifier("springSessionRedisTaskExecutor") public void setRedisTaskExecutor(ExecutorSE redisTaskExecutor) setRedisSubscriptionExecutor
@Autowired(required=false) @Qualifier("springSessionRedisSubscriptionExecutor") public void setRedisSubscriptionExecutor(ExecutorSE redisSubscriptionExecutor) setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - 次で指定:
- インターフェース
org.springframework.context.EmbeddedValueResolverAware
のsetEmbeddedValueResolver
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - 次で指定:
- インターフェース
org.springframework.context.annotation.ImportAware
のsetImportMetadata
setSessionIdGenerator