Class GemFireHttpSessionConfiguration
java.lang.Object
org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
org.springframework.session.data.gemfire.config.annotation.web.http.AbstractGemFireHttpSessionConfiguration
org.springframework.session.data.gemfire.config.annotation.web.http.GemFireHttpSessionConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EnvironmentAware
@Configuration
@PropertySource(name="SpringSessionProperties",
value="classpath:${spring-session-properties-location:spring-session.properties}",
ignoreResourceNotFound=true)
public class GemFireHttpSessionConfiguration
extends AbstractGemFireHttpSessionConfiguration
implements org.springframework.context.annotation.ImportAware
The
GemFireHttpSessionConfiguration
class is a Spring @Configuration
class
used to configure and initialize Pivotal GemFire/Apache Geode as a clustered, distributed and replicated
HttpSession
provider implementation in Spring Session
.- Since:
- 1.1.0
- See Also:
-
Duration
DataSerializer
Cache
ExpirationAttributes
GemFireCache
Region
RegionAttributes
RegionShortcut
ClientCache
ClientRegionShortcut
Pool
Index
PdxSerializer
BeanPostProcessor
Bean
Configuration
DependsOn
Import
ImportAware
Profile
AnnotationAttributes
ConfigurableEnvironment
Environment
PropertiesPropertySource
PropertySource
AnnotationMetadata
CacheFactoryBean
GemfireOperations
GemfireTemplate
IndexFactoryBean
RegionAttributesFactoryBean
Session
SessionRepository
SpringHttpSessionConfiguration
GemFireOperationsSessionRepository
AbstractGemFireHttpSessionConfiguration
EnableGemFireHttpSession
SessionAttributesIndexFactoryBean
SessionCacheTypeAwareRegionFactoryBean
SpringSessionGemFireConfigurer
SessionExpirationPolicy
SessionExpirationTimeoutAwareBeanPostProcessor
SessionExpirationPolicyCustomExpiryAdapter
SessionSerializer
DataSerializableSessionSerializer
DataSerializerSessionSerializerAdapter
PdxSerializableSessionSerializer
PdxSerializerSessionSerializerAdapter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final org.apache.geode.cache.client.ClientRegionShortcut
DefaultClientRegionShortcut
used to configure the data management policy of theClientCache
Region
that will storeSession
state.static final boolean
Default expose Spring Session using Apache Geode or Pivotal GemFire configuration asProperties
in Spring'sEnvironment
.static final String[]
Defaults names of allSession
attributes that will be indexed by Apache Geode.static final IsDirtyPredicate
DefaultIsDirtyPredicate
strategy interface used to determine whether the users' application domain objects are dirty or not.static final int
Default maximum interval in seconds in which aSession
can remain inactive before it expires.static final String
Name of the connectionPool
used by the clientRegion
to sendSession
state to the cluster of Apache Geode servers.static final org.apache.geode.cache.RegionShortcut
DefaultRegionShortcut
used to configure the data management policy of theCache
Region
that will storeSession
state.static final String
Default name for theSessionExpirationPolicy
bean.static final String
Default name of (Client)CacheRegion
used to storeSession
state.static final String
static final boolean
Indicates whether to employ Apache Geode/Pivotal's DataSerialization framework forSession
de/serialization.static final String
Set of defaults forSession
serialization.static final String
Key and Value class type constraints applied to theSession
Region
.protected static final Class<AbstractGemFireOperationsSessionRepository.GemFireSession>
static final String
static final String
protected static final String
Fields inherited from class org.springframework.session.data.gemfire.config.annotation.web.http.AbstractGemFireHttpSessionConfiguration
SPRING_SESSION_PROPERTY_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.client.ClientRegionShortcut
Gets theClientRegionShortcut
used to configure the data management policy of theClientCache
Region
that will storeSession
state.String[]
Get the names of allSession
attributes that will be indexed.Returns the configuredIsDirtyPredicate
strategy interface bean, declared in the Spring context, used to determine whether the users' application domain objects are dirty or not.int
Gets the maximum interval in seconds in which aSession
can remain inactive before it expires.Returns the name of thePool
used by the clientRegion
to sendSession
to the cluster of servers during cache operations.org.apache.geode.cache.RegionShortcut
Gets theRegionShortcut
used to configure the data management policy of theCache
Region
that will storeSession
state.Returns anOptional
name
of the bean configured in the Spring application context implementing theSessionExpirationPolicy
forSession
expiration.Returns the name of the (Client)CacheRegion
used to storeSession
state.Returns the configuredbean name
of the Spring bean declared in the Spring application context defining the serialization strategy for serializing theSession
.boolean
Determines whether the configuration for Spring Session using Apache Geode or Pivotal GemFire should be exposed in the SpringEnvironment
asProperties
.protected boolean
Determine whether the configured serialization strategy is using Apache Geode / Pivotal GemFire's DataSerialization framework.org.springframework.data.gemfire.IndexFactoryBean
principalNameIndex
(org.apache.geode.cache.GemFireCache gemfireCache) Defines an OQLIndex
bean on theGemFireCache
Region
storing and managingSessions
, specifically on the principalName property for quick lookup ofSessions
by principalName.void
sessionAttributesIndex
(org.apache.geode.cache.GemFireCache gemfireCache) SessionSerializer
bean implemented with Apache Geode/Pivotal GemFire DataSerialization framework.SessionSerializer
bean implemented with Apache Geode/Pivotal GemFire PDX serialization framework.SessionCacheTypeAwareRegionFactoryBean<Object,
org.springframework.session.Session> sessionRegion
(org.apache.geode.cache.GemFireCache gemfireCache, org.apache.geode.cache.RegionAttributes<Object, org.springframework.session.Session> sessionRegionAttributes) Defines theRegion
used to store and manageSession
state in either a client-server or peer-to-peer (p2p) topology.org.springframework.data.gemfire.RegionAttributesFactoryBean
sessionRegionAttributes
(org.apache.geode.cache.GemFireCache gemfireCache) Defines aRegionAttributes
used to configure and initialize the cacheRegion
used to storeSession
state.org.springframework.data.gemfire.GemfireTemplate
sessionRegionTemplate
(org.apache.geode.cache.GemFireCache gemfireCache) Defines aGemfireTemplate
bean used to interact with the (Client)CacheRegion
used to storeSession
state.sessionRepository
(org.springframework.data.gemfire.GemfireOperations gemfireOperations) Defines theSessionRepository
bean used to interact with Apache Geode or Pivotal GemFire as the Spring Session provider.void
setClientRegionShortcut
(org.apache.geode.cache.client.ClientRegionShortcut shortcut) Gets theClientRegionShortcut
used to configure the data management policy of theClientCache
Region
that will storeSession
state.void
setExposeConfigurationAsProperties
(boolean exposeConfigurationAsProperties) Sets whether to expose the configuration of Spring Session using Apache Geode or Pivotal GemFire asProperties
in the SpringEnvironment
.void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) Callback with theAnnotationMetadata
of the class containing@Import
annotation that imported this@Configuration
class.void
setIndexableSessionAttributes
(String[] indexableSessionAttributes) Sets the names of allSession
attributes that will be indexed.void
setIsDirtyPredicate
(IsDirtyPredicate dirtyPredicate) Configures theIsDirtyPredicate
strategy interface, as a bean from the Spring context, used to determine whether the users' application domain objects are dirty or not.void
setMaxInactiveIntervalInSeconds
(int maxInactiveIntervalInSeconds) Sets the maximum interval in seconds in which aSession
can remain inactive before it expires.void
setPoolName
(String poolName) Sets the name of thePool
used by the clientRegion
to sendSession
to the cluster of servers during cache operations.void
setServerRegionShortcut
(org.apache.geode.cache.RegionShortcut shortcut) Sets theRegionShortcut
used to configure the data management policy of theCache
Region
that will storeSession
state.void
setSessionExpirationPolicyBeanName
(String sessionExpirationPolicyBeanName) Sets thename
of the bean configured in the Spring application context implementing theSessionExpirationPolicy
forSession
expiration.void
setSessionRegionName
(String sessionRegionName) Sets the name of the (Client)CacheRegion
used to storeSession
state.void
setSessionSerializerBeanName
(String sessionSerializerBeanName) Sets thebean name
of the Spring bean declared in the Spring application context defining the serialization strategy for serializing theSession
.Methods inherited from class org.springframework.session.data.gemfire.config.annotation.web.http.AbstractGemFireHttpSessionConfiguration
clientRegionShortcutPropertyName, exposeConfigurationAsPropertiesPropertyName, getApplicationContext, getBeanClassLoader, getBeanFactory, getEnvironment, getLogger, indexableSessionAttributesPropertyName, indexedSessionAttributesPropertyName, maxInactiveIntervalInSecondsPropertyName, poolNamePropertyName, requireProperty, resolveEnumeratedProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, serverRegionShortcutPropertyName, sessionExpirationPolicyBeanNamePropertyName, sessionRegionNamePropertyName, sessionSerializerBeanNamePropertyName, setApplicationContext, setBeanClassLoader, setEnvironment
Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
init, sessionEventHttpSessionListenerAdapter, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter
-
Field Details
-
DEFAULT_EXPOSE_CONFIGURATION_AS_PROPERTIES
public static final boolean DEFAULT_EXPOSE_CONFIGURATION_AS_PROPERTIESDefault expose Spring Session using Apache Geode or Pivotal GemFire configuration asProperties
in Spring'sEnvironment
.- See Also:
-
DEFAULT_USE_DATA_SERIALIZATION
public static final boolean DEFAULT_USE_DATA_SERIALIZATIONIndicates whether to employ Apache Geode/Pivotal's DataSerialization framework forSession
de/serialization.- See Also:
-
DEFAULT_MAX_INACTIVE_INTERVAL_IN_SECONDS
public static final int DEFAULT_MAX_INACTIVE_INTERVAL_IN_SECONDSDefault maximum interval in seconds in which aSession
can remain inactive before it expires. -
SESSION_REGION_KEY_CONSTRAINT
Key and Value class type constraints applied to theSession
Region
. -
SESSION_REGION_VALUE_CONSTRAINT
protected static final Class<AbstractGemFireOperationsSessionRepository.GemFireSession> SESSION_REGION_VALUE_CONSTRAINT -
DEFAULT_CLIENT_REGION_SHORTCUT
public static final org.apache.geode.cache.client.ClientRegionShortcut DEFAULT_CLIENT_REGION_SHORTCUTDefaultClientRegionShortcut
used to configure the data management policy of theClientCache
Region
that will storeSession
state. -
DEFAULT_IS_DIRTY_PREDICATE
DefaultIsDirtyPredicate
strategy interface used to determine whether the users' application domain objects are dirty or not. -
DEFAULT_SERVER_REGION_SHORTCUT
public static final org.apache.geode.cache.RegionShortcut DEFAULT_SERVER_REGION_SHORTCUTDefaultRegionShortcut
used to configure the data management policy of theCache
Region
that will storeSession
state. -
CONFIGURER_GET_CLIENT_REGION_SHORTCUT_METHOD_NAME
-
CONFIGURER_GET_EXPOSE_CONFIGURATION_IN_PROPERTIES_METHOD_NAME
-
CONFIGURER_GET_INDEXABLE_SESSION_ATTRIBUTES_METHOD_NAME
-
CONFIGURER_GET_MAX_INACTIVE_INTERVAL_IN_SECONDS_METHOD_NAME
-
CONFIGURER_GET_POOL_NAME_METHOD_NAME
-
CONFIGURER_GET_REGION_NAME_METHOD_NAME
-
CONFIGURER_GET_SERVER_REGION_SHORTCUT_METHOD_NAME
-
CONFIGURER_GET_SESSION_EXPIRATION_POLICY_BEAN_NAME_METHOD_NAME
-
CONFIGURER_GET_SESSION_SERIALIZER_BEAN_NAME_METHOD_NAME
-
DEFAULT_POOL_NAME
Name of the connectionPool
used by the clientRegion
to sendSession
state to the cluster of Apache Geode servers.- See Also:
-
DEFAULT_SESSION_EXPIRATION_POLICY_BEAN_NAME
Default name for theSessionExpirationPolicy
bean.- See Also:
-
DEFAULT_SESSION_REGION_NAME
Default name of (Client)CacheRegion
used to storeSession
state.- See Also:
-
SESSION_DATA_SERIALIZER_BEAN_NAME
Set of defaults forSession
serialization.- See Also:
-
SESSION_PDX_SERIALIZER_BEAN_NAME
- See Also:
-
SESSION_SERIALIZER_BEAN_ALIAS
- See Also:
-
DEFAULT_SESSION_SERIALIZER_BEAN_NAME
- See Also:
-
SPRING_SESSION_DATA_GEMFIRE_SESSION_SERIALIZER_BEAN_NAME_PROPERTY
- See Also:
-
SPRING_SESSION_GEMFIRE_PROPERTY_SOURCE
-
DEFAULT_INDEXABLE_SESSION_ATTRIBUTES
Defaults names of allSession
attributes that will be indexed by Apache Geode.
-
-
Constructor Details
-
GemFireHttpSessionConfiguration
public GemFireHttpSessionConfiguration()
-
-
Method Details
-
setClientRegionShortcut
public void setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut shortcut) Gets theClientRegionShortcut
used to configure the data management policy of theClientCache
Region
that will storeSession
state. Defaults toClientRegionShortcut.PROXY
.- Parameters:
shortcut
-ClientRegionShortcut
used to configure the data management policy of theClientCache
Region
.- See Also:
-
EnableGemFireHttpSession.clientRegionShortcut()
ClientRegionShortcut
-
getClientRegionShortcut
public org.apache.geode.cache.client.ClientRegionShortcut getClientRegionShortcut()Gets theClientRegionShortcut
used to configure the data management policy of theClientCache
Region
that will storeSession
state. Defaults toClientRegionShortcut.PROXY
.- Returns:
- the
ClientRegionShortcut
used to configure the data management policy of theClientCache
Region
. - See Also:
-
ClientRegionShortcut
-
setExposeConfigurationAsProperties
public void setExposeConfigurationAsProperties(boolean exposeConfigurationAsProperties) Sets whether to expose the configuration of Spring Session using Apache Geode or Pivotal GemFire asProperties
in the SpringEnvironment
.- Parameters:
exposeConfigurationAsProperties
- boolean indicating whether to expose the configuration of Spring Session using Apache Geode or Pivotal GemFire asProperties
in the SpringEnvironment
.- See Also:
-
isExposeConfigurationAsProperties
public boolean isExposeConfigurationAsProperties()Determines whether the configuration for Spring Session using Apache Geode or Pivotal GemFire should be exposed in the SpringEnvironment
asProperties
. Currently, users may configure Spring Session for Apache Geode or Pivotal GemFire using attributes on thisAnnotation
, using the well-known and documentedProperties
(e.g. spring.session.data.gemfire.session.expiration.max-inactive-interval-seconds) or using theSpringSessionGemFireConfigurer
declared as a bean in the Spring application context. TheProperties
that are exposed will use the well-known propertynames
that are documented in thisAnnotation's
attributes. The values of the resultingProperties
follows the precedence as outlined in the documentation: first anySpringSessionGemFireConfigurer
bean defined takes precedence, followed by explicitProperties
declared in Spring Boot application.properties and finally, thisAnnotation's
attribute values. Defaults to false. Use spring.session.data.gemfire.session.configuration.expose in Spring Boot application.properties.- Returns:
- a boolean value indicating whether to expose the configuration of Spring Session using Apache Geode
or Pivotal GemFire in the Spring
Environment
asProperties
.
-
setIndexableSessionAttributes
Sets the names of allSession
attributes that will be indexed.- Parameters:
indexableSessionAttributes
- an array ofStrings
containing the names of allSession
attributes for which an Index will be created.- See Also:
-
getIndexableSessionAttributes
Get the names of allSession
attributes that will be indexed.- Returns:
- an array of
Strings
containing the names of allSession
attributes for which an Index will be created. Defaults to an empty array if unspecified.
-
setIsDirtyPredicate
Configures theIsDirtyPredicate
strategy interface, as a bean from the Spring context, used to determine whether the users' application domain objects are dirty or not.- Parameters:
dirtyPredicate
-IsDirtyPredicate
strategy interface bean used to determine whether the users' application domain objects are dirty or not.- See Also:
-
getIsDirtyPredicate
Returns the configuredIsDirtyPredicate
strategy interface bean, declared in the Spring context, used to determine whether the users' application domain objects are dirty or not. Defaults toDEFAULT_IS_DIRTY_PREDICATE
.- Returns:
- the configured
IsDirtyPredicate
strategy interface bean used to determine whether the users' application domain objects are dirty or not. - See Also:
-
setMaxInactiveIntervalInSeconds
public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) Sets the maximum interval in seconds in which aSession
can remain inactive before it expires.- Parameters:
maxInactiveIntervalInSeconds
- integer value specifying the maximum interval in seconds that aSession
can remain inactive before it expires.- See Also:
-
getMaxInactiveIntervalInSeconds
public int getMaxInactiveIntervalInSeconds()Gets the maximum interval in seconds in which aSession
can remain inactive before it expires.- Returns:
- an integer value specifying the maximum interval in seconds that a
Session
can remain inactive before it expires.
-
setPoolName
Sets the name of thePool
used by the clientRegion
to sendSession
to the cluster of servers during cache operations.- Parameters:
poolName
-String
containing the name of aPool
.- See Also:
-
getPoolName
Returns the name of thePool
used by the clientRegion
to sendSession
to the cluster of servers during cache operations.- Returns:
- a
String
containing the name of aPool
. - See Also:
-
Pool.getName()
-
setServerRegionShortcut
public void setServerRegionShortcut(org.apache.geode.cache.RegionShortcut shortcut) Sets theRegionShortcut
used to configure the data management policy of theCache
Region
that will storeSession
state. Defaults toRegionShortcut.PARTITION
.- Parameters:
shortcut
-RegionShortcut
used to configure the data management policy of theCache
Region
.- See Also:
-
EnableGemFireHttpSession.serverRegionShortcut()
RegionShortcut
-
getServerRegionShortcut
public org.apache.geode.cache.RegionShortcut getServerRegionShortcut()Gets theRegionShortcut
used to configure the data management policy of theCache
Region
that will storeSession
state. Defaults toRegionShortcut.PARTITION
.- Returns:
- the
RegionShortcut
used to configure the data management policy of theCache
Region
. - See Also:
-
RegionShortcut
-
setSessionExpirationPolicyBeanName
Sets thename
of the bean configured in the Spring application context implementing theSessionExpirationPolicy
forSession
expiration.- Parameters:
sessionExpirationPolicyBeanName
-String
containing the name of the bean configured in the Spring application context implementing theSessionExpirationPolicy
forSession
expiration.
-
getSessionExpirationPolicyBeanName
Returns anOptional
name
of the bean configured in the Spring application context implementing theSessionExpirationPolicy
forSession
expiration.- Returns:
- an
Optional
name
of the bean configured in the Spring application context implementing theSessionExpirationPolicy
forSession
expiration.
-
setSessionRegionName
Sets the name of the (Client)CacheRegion
used to storeSession
state.- Parameters:
sessionRegionName
-String
specifying the name of the (Client)CacheRegion
used to storeSession
state.- See Also:
-
getSessionRegionName
Returns the name of the (Client)CacheRegion
used to storeSession
state.- Returns:
- a
String
specifying the name of the (Client)CacheRegion
used to storeSession
state. - See Also:
-
Region.getName()
-
setSessionSerializerBeanName
Sets thebean name
of the Spring bean declared in the Spring application context defining the serialization strategy for serializing theSession
. The serialization strategy and bean referred to by its name must be an implementation ofSessionSerializer
. Defaults to SessionDataSerializer.- Parameters:
sessionSerializerBeanName
-bean name
of theSessionSerializer
used to serialize theSession
.- See Also:
-
getSessionSerializerBeanName
Returns the configuredbean name
of the Spring bean declared in the Spring application context defining the serialization strategy for serializing theSession
. The serialization strategy and bean referred to by its name must be an implementation ofSessionSerializer
. Defaults to SessionDataSerializer.- Returns:
- the
bean name
of theSessionSerializer
used to serialize theSession
. - See Also:
-
isUsingDataSerialization
protected boolean isUsingDataSerialization()Determine whether the configured serialization strategy is using Apache Geode / Pivotal GemFire's DataSerialization framework.- Returns:
- a boolean value indicating whether the configured serialization strategy is using Apache Geode / Pivotal GemFire's DataSerialization framework.
- See Also:
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) Callback with theAnnotationMetadata
of the class containing@Import
annotation that imported this@Configuration
class. The@Configuration
class should also be annotated withEnableGemFireHttpSession
.- Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
- Parameters:
importMetadata
-AnnotationMetadata
of the application class importing thisConfiguration
class.- See Also:
-
AnnotationMetadata
applySpringSessionGemFireConfigurer()
exposeSpringSessionGemFireConfiguration()
-
registerSessionSerializerBeanAlias
@PostConstruct public void registerSessionSerializerBeanAlias() -
sessionDataSerializer
SessionSerializer
bean implemented with Apache Geode/Pivotal GemFire DataSerialization framework.- Returns:
- a DataSerialization
SessionSerializer
implementation. - See Also:
-
sessionPdxSerializer
SessionSerializer
bean implemented with Apache Geode/Pivotal GemFire PDX serialization framework.- Returns:
- a PDX serialization
SessionSerializer
implementation. - See Also:
-
sessionRegion
@Bean(name="ClusteredSpringSessions") public SessionCacheTypeAwareRegionFactoryBean<Object,org.springframework.session.Session> sessionRegion(org.apache.geode.cache.GemFireCache gemfireCache, @Qualifier("sessionRegionAttributes") org.apache.geode.cache.RegionAttributes<Object, org.springframework.session.Session> sessionRegionAttributes) Defines theRegion
used to store and manageSession
state in either a client-server or peer-to-peer (p2p) topology.- Parameters:
gemfireCache
- reference to theGemFireCache
.sessionRegionAttributes
-RegionAttributes
used to configure theRegion
.- Returns:
- a
SessionCacheTypeAwareRegionFactoryBean
used to configure and initialize the cacheRegion
used to store and manageSession
state. - See Also:
-
GemFireCache
RegionAttributes
getClientRegionShortcut()
getPoolName()
getServerRegionShortcut()
getSessionRegionName()
-
sessionRegionAttributes
@Bean public org.springframework.data.gemfire.RegionAttributesFactoryBean sessionRegionAttributes(org.apache.geode.cache.GemFireCache gemfireCache) Defines aRegionAttributes
used to configure and initialize the cacheRegion
used to storeSession
state. Expiration is also configured for theRegion
on the basis that the cacheRegion
is a not a proxy on either the client or server.- Parameters:
gemfireCache
- reference to theGemFireCache
.- Returns:
- an instance of
RegionAttributes
used to configure and initialize cacheRegion
used to store and manageSession
state. - See Also:
-
RegionAttributesFactoryBean
GemFireCache
PartitionAttributes
isExpirationAllowed(GemFireCache)
-
sessionRegionTemplate
@Bean @DependsOn("ClusteredSpringSessions") public org.springframework.data.gemfire.GemfireTemplate sessionRegionTemplate(org.apache.geode.cache.GemFireCache gemfireCache) Defines aGemfireTemplate
bean used to interact with the (Client)CacheRegion
used to storeSession
state.- Parameters:
gemfireCache
- reference to the singleGemFireCache
instance used by theGemfireTemplate
to perform cacheRegion
data access operations.- Returns:
- a
GemfireTemplate
used to interact with the (Client)CacheRegion
used to storeSession
state. - See Also:
-
GemfireTemplate
GemFireCache
Region
getSessionRegionName()
-
sessionRepository
@Bean public GemFireOperationsSessionRepository sessionRepository(@Qualifier("sessionRegionTemplate") org.springframework.data.gemfire.GemfireOperations gemfireOperations) Defines theSessionRepository
bean used to interact with Apache Geode or Pivotal GemFire as the Spring Session provider.- Parameters:
gemfireOperations
- instance ofGemfireOperations
used to manageSession
state in Apache Geode or Pivotal GemFire.- Returns:
- a
GemFireOperationsSessionRepository
for managing (clustering/replicating)Session
state in Apache Geode or Pivotal GemFire. - See Also:
-
GemFireOperationsSessionRepository
GemfireOperations
-
principalNameIndex
@Bean @DependsOn("ClusteredSpringSessions") @Profile("!disable-spring-session-data-gemfire-indexes") public org.springframework.data.gemfire.IndexFactoryBean principalNameIndex(org.apache.geode.cache.GemFireCache gemfireCache) Defines an OQLIndex
bean on theGemFireCache
Region
storing and managingSessions
, specifically on the principalName property for quick lookup ofSessions
by principalName.- Parameters:
gemfireCache
- reference to theGemFireCache
.- Returns:
- a
IndexFactoryBean
to create an OQLIndex
on the principalName property forSessions
stored in theGemFireCache
Region
. - See Also:
-
IndexFactoryBean
GemFireCache
-
sessionAttributesIndex
@Bean @DependsOn("ClusteredSpringSessions") @Profile("!disable-spring-session-data-gemfire-indexes") public SessionAttributesIndexFactoryBean sessionAttributesIndex(org.apache.geode.cache.GemFireCache gemfireCache) Defines an OQLIndex
bean on theGemFireCache
Region
storing and managingSessions
, specifically on allSession
attributes for quick lookup and queries onSession
attributenames
with a givenvalue
.- Parameters:
gemfireCache
- reference to theGemFireCache
.- Returns:
- a
IndexFactoryBean
to create an OQLIndex
on attributes ofSessions
stored in theGemFireCache
Region
. - See Also:
-
IndexFactoryBean
GemFireCache
-