Annotation Type EnableInfinispanEmbeddedHttpSession
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Import(InfinispanEmbeddedHttpSessionConfiguration.class) @Configuration public @interface EnableInfinispanEmbeddedHttpSession
Add this annotation to a@Configuration
class to expose the SessionRepositoryFilter as a bean named "springSessionRepositoryFilter" and backed on Infinispan.The configuration requires creating a
SpringCache
(for either remote or embedded configuration). Here's an example:@Configuration @EnableInfinispanEmbeddednHttpSession public class InfinispanConfiguration { @Bean public SpringEmbeddedCacheManagerFactoryBean springCache() { return new SpringEmbeddedCacheManagerFactoryBean(); } }
InfinispanEmbeddedHttpSessionConfiguration
.- Since:
- 9.0
- Author:
- Sebastian Ćaskawiec
- See Also:
EnableSpringHttpSession
-
-
Field Summary
Fields Modifier and Type Fields Description static String
DEFAULT_CACHE_NAME
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
cacheName
Cache name used for storing session data.int
maxInactiveIntervalInSeconds
This is the session timeout in seconds.
-