K - the type of keysV - the type of valuespublic class SessionCacheTypeAwareRegionFactoryBean<K,V>
extends org.springframework.data.gemfire.config.annotation.support.CacheTypeAwareRegionFactoryBean<K,V>
SessionCacheTypeAwareRegionFactoryBean class is a Spring FactoryBean used to construct,
configure and initialize the Apache Geode/Pivotal GemFire cache Region used to store and manage
Session state.GemFireCache,
Region,
RegionAttributes,
RegionShortcut,
ClientRegionShortcut,
Pool,
FactoryBean,
InitializingBean,
SmartLifecycle,
GenericRegionFactoryBean,
ClientRegionFactoryBean,
AbstractFactoryBeanSupport,
GemFireHttpSessionConfiguration| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.geode.cache.client.ClientRegionShortcut |
DEFAULT_CLIENT_REGION_SHORTCUT |
protected static java.lang.String |
DEFAULT_POOL_NAME |
protected static org.apache.geode.cache.RegionShortcut |
DEFAULT_SERVER_REGION_SHORTCUT |
protected static java.lang.String |
DEFAULT_SESSION_REGION_NAME |
| Constructor and Description |
|---|
SessionCacheTypeAwareRegionFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.geode.cache.client.ClientRegionShortcut |
getClientRegionShortcut()
Returns the
Region data management policy used by the Apache Geode/Pivotal GemFire ClientCache
to manage Session state. |
protected java.util.Optional<java.lang.String> |
getPoolName()
Returns the name of the Pivotal GemFire
Pool used by the client Region for managing Sessions
during cache operations involving the server. |
protected java.lang.String |
getRegionName()
Returns the configured
name of the Region used to store and manage Session state. |
org.apache.geode.cache.RegionShortcut |
getServerRegionShortcut()
Returns the
Region data management policy used by the Apache Geode/Pivotal GemFire peer Cache
to manage Session state. |
java.lang.String |
resolveRegionName()
Resolves the
name of the Region used to manage Session state. |
void |
setRegionName(java.lang.String regionName)
Sets the
name of the Region used to store and manage Session state. |
configureEviction, configureExpiration, createRegion, getAttributes, getClose, getCompressor, getCustomEntryIdleTimeout, getCustomEntryTimeToLive, getDataPolicy, getDiskStoreName, getEntryIdleTimeout, getEntryTimeToLive, getEvictionAttributes, getInterests, getKeyConstraint, getOffHeap, getPhase, getRegionIdleTimeout, getRegionTimeToLive, getScope, getSmartLifecycleComponent, getValueConstraint, isAutoStartup, isClose, isRunning, newClientRegion, newClientRegionFactoryBean, newPeerRegionFactoryBean, newServerRegion, resolvePoolName, setAttributes, setClientRegionShortcut, setClose, setCompressor, setCustomEntryIdleTimeout, setCustomEntryTimeToLive, setDataPolicy, setDiskStoreName, setEntryIdleTimeout, setEntryTimeToLive, setEvictionAttributes, setInterests, setKeyConstraint, setOffHeap, setPoolName, setRegionConfigurers, setRegionConfigurers, setRegionIdleTimeout, setRegionTimeToLive, setScope, setServerRegionShortcut, setValueConstraint, start, stop, stopafterPropertiesSet, getCache, getLookupEnabled, getObject, getObjectType, getParent, getRegion, isLookupEnabled, loadSnapshot, postProcess, setCache, setLookupEnabled, setName, setParent, setRegion, setSnapshotgetBeanClassLoader, getBeanFactory, getBeanName, getLog, isSingleton, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanNameprotected static final org.apache.geode.cache.client.ClientRegionShortcut DEFAULT_CLIENT_REGION_SHORTCUT
protected static final org.apache.geode.cache.RegionShortcut DEFAULT_SERVER_REGION_SHORTCUT
protected static final java.lang.String DEFAULT_POOL_NAME
protected static final java.lang.String DEFAULT_SESSION_REGION_NAME
public SessionCacheTypeAwareRegionFactoryBean()
public org.apache.geode.cache.client.ClientRegionShortcut getClientRegionShortcut()
Region data management policy used by the Apache Geode/Pivotal GemFire ClientCache
to manage Session state.
Defaults to ClientRegionShortcut.PROXY.protected java.util.Optional<java.lang.String> getPoolName()
Pool used by the client Region for managing Sessions
during cache operations involving the server.public void setRegionName(java.lang.String regionName)
name of the Region used to store and manage Session state.protected java.lang.String getRegionName()
name of the Region used to store and manage Session state.
Defaults to ClusteredSpringSessions.String containing the name of the Region used to store
and manage Session state.Region.getName()public java.lang.String resolveRegionName()
name of the Region used to manage Session state.resolveRegionName in class org.springframework.data.gemfire.ResolvableRegionFactoryBean<K,V>name of the Region used to manage Session state.getRegionName()public org.apache.geode.cache.RegionShortcut getServerRegionShortcut()
Region data management policy used by the Apache Geode/Pivotal GemFire peer Cache
to manage Session state.
Defaults to RegionShortcut.PARTITION.