Class SpringSessionAutoConfiguration

java.lang.Object
org.springframework.geode.boot.autoconfigure.SpringSessionAutoConfiguration

@SpringBootConfiguration @AutoConfigureAfter(ClientCacheAutoConfiguration.class) @Conditional(SpringSessionStoreTypeCondition.class) @ConditionalOnBean(org.apache.geode.cache.GemFireCache.class) @ConditionalOnClass({org.apache.geode.cache.GemFireCache.class,org.springframework.session.data.gemfire.config.annotation.web.http.GemFireHttpSessionConfiguration.class}) @ConditionalOnMissingBean(org.springframework.session.web.http.SessionRepositoryFilter.class) @ConditionalOnWebApplication(type=SERVLET) @EnableGemFireHttpSession(poolName="DEFAULT") @Import(EnableSubscriptionConfiguration.class) public class SpringSessionAutoConfiguration extends Object
Spring Boot auto-configuration for configuring Apache Geode as an (HTTP) Session state management provider in Spring Session.
Since:
1.0.0
See Also:
  • Properties
  • GemFireCache
  • SpringApplication
  • SpringBootConfiguration
  • AutoConfigureAfter
  • EnableAutoConfiguration
  • ConditionalOnBean
  • ConditionalOnClass
  • ConditionalOnMissingBean
  • ConditionalOnWebApplication
  • Condition
  • ConditionContext
  • Conditional
  • Import
  • ConfigurableEnvironment
  • PropertiesPropertySource
  • PropertySource
  • AnnotatedTypeMetadata
  • EnableSubscriptionConfiguration
  • Session
  • EnableGemFireHttpSession
  • GemFireHttpSessionConfiguration
  • SessionRepositoryFilter
  • Field Details

    • SPRING_SESSION_STORE_TYPES

      protected static final Set<String> SPRING_SESSION_STORE_TYPES
    • SERVER_SERVLET_SESSION_TIMEOUT_PROPERTY

      protected static final String SERVER_SERVLET_SESSION_TIMEOUT_PROPERTY
      See Also:
    • SPRING_SESSION_DATA_GEMFIRE_SESSION_EXPIRATION_TIMEOUT

      protected static final String SPRING_SESSION_DATA_GEMFIRE_SESSION_EXPIRATION_TIMEOUT
      See Also:
    • SPRING_SESSION_PROPERTY_SOURCE_NAME

      protected static final String SPRING_SESSION_PROPERTY_SOURCE_NAME
      See Also:
    • SPRING_SESSION_STORE_TYPE_PROPERTY

      protected static final String SPRING_SESSION_STORE_TYPE_PROPERTY
      See Also:
    • SPRING_SESSION_TIMEOUT_PROPERTY

      protected static final String SPRING_SESSION_TIMEOUT_PROPERTY
      See Also:
  • Constructor Details

    • SpringSessionAutoConfiguration

      public SpringSessionAutoConfiguration()
  • Method Details

    • getDefaultSessionTimeout

      @NonNull protected static Duration getDefaultSessionTimeout()
    • toSeconds

      protected static int toSeconds(@Nullable Duration duration)
    • toSecondsAsString

      @NonNull protected static String toSecondsAsString(@Nullable Duration duration)
    • isNotSet

      protected static boolean isNotSet(org.springframework.core.env.ConfigurableEnvironment environment, String propertyName)
    • isSet

      protected static boolean isSet(org.springframework.core.env.ConfigurableEnvironment environment, String propertyName)