@Configuration public class CachingDefinedRegionsConfiguration extends AbstractAnnotationConfigSupport implements ImportAware
CachingDefinedRegionsConfiguration class is a Spring @Configuration class
that applies configuration to a Spring (Data Pivotal GemFire/Apache Geode) application to create Pivotal GemFire/Apache Geode cache
Regions based on the use of Spring's Cache Abstraction to enable caching for application
service classes and methods.Annotation,
AnnotatedElement,
GemFireCache,
Region,
RegionShortcut,
ClientRegionShortcut,
Pool,
AnnotatedBeanDefinition,
BeanDefinition,
BeanPostProcessor,
ConfigurableBeanFactory,
AbstractBeanDefinition,
BeanDefinitionBuilder,
BeanDefinitionRegistry,
BeanDefinitionRegistryPostProcessor,
CacheConfig,
CacheEvict,
CachePut,
Cacheable,
Caching,
Bean,
Configuration,
ImportAware,
AnnotatedElementUtils,
AnnotationUtils,
EnableCachingDefinedRegions,
AbstractAnnotationConfigSupport,
BeanDefinitionRegistryPostProcessorSupport,
CacheTypeAwareRegionFactoryBean| Modifier and Type | Class and Description |
|---|---|
static class |
CachingDefinedRegionsConfiguration.AbstractCacheNameResolver
CachingDefinedRegionsConfiguration.AbstractCacheNameResolver is an abstract base class encapsulating reusable functionality common
to all CachingDefinedRegionsConfiguration.CacheNameResolver implementations. |
static interface |
CachingDefinedRegionsConfiguration.CacheNameResolver
CachingDefinedRegionsConfiguration.CacheNameResolver is a FunctionalInterface declaring a contract for all implementations
used to resolve all cache names declared and used by a Spring application. |
protected static class |
CachingDefinedRegionsConfiguration.SpringCacheAnnotationsCacheNameResolver |
AbstractAnnotationConfigSupport.TypeResolver<T>INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX| Constructor and Description |
|---|
CachingDefinedRegionsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
BeanPostProcessor |
cachingAnnotationsRegionBeanRegistrar(ConfigurableBeanFactory beanFactory) |
Lifecycle |
cachingDefinedRegionsCompositeLifecycleBean() |
protected Class<? extends Annotation> |
getAnnotationType()
Returns the
Annotation type that configures and creates Regions
for application service Methods that are annotated with Spring's Cache Abstraction Annotations. |
protected CachingDefinedRegionsConfiguration.CacheNameResolver |
getCacheNameResolver()
Returns the configured
CachingDefinedRegionsConfiguration.CacheNameResolver to resolve all the declared cache name on Spring application
beans/components declared and registered in the Spring container (context). |
protected Optional<org.apache.geode.cache.client.ClientRegionShortcut> |
getClientRegionShortcut()
Returns the configured
ClientRegionShortcut specifying the data management policy to use
when creating a client Region. |
protected Optional<String> |
getPoolName()
Returns the name of the dedicated
Pool used by all caching-defined client Regions
to send and receive data between the client and server. |
protected Optional<org.apache.geode.cache.RegionShortcut> |
getServerRegionShortcut()
Returns the configured
RegionShortcut specifying the data management policy to use
when creating a server (peer) Region. |
protected org.apache.geode.cache.client.ClientRegionShortcut |
resolveClientRegionShortcut()
Resolves the
ClientRegionShortcut specifying the data management policy to use
when creating a client Region; defaults to ClientRegionShortcut.PROXY. |
protected String |
resolvePoolName()
Resolves the name of the dedicated
Pool used by all caching-defined client Regions
to send and receive data between the client and server; defaults to DEFAULT. |
protected org.apache.geode.cache.RegionShortcut |
resolveServerRegionShortcut()
Resolves the
RegionShortcut specifying the data management policy to use
when creating a server (peer) Region; defaults to RegionShortcut.PARTITION. |
void |
setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
Configures the
ClientRegionShortcut specifying the data management policy to use
when creating a client Region. |
void |
setImportMetadata(AnnotationMetadata importMetadata) |
void |
setPoolName(String poolName)
Configures the name of the dedicated
Pool used by all caching-defined client Regions
to send and receive data between the client and server. |
void |
setServerRegionShortcut(org.apache.geode.cache.RegionShortcut serverRegionShortcut)
Configures the
RegionShortcut specifying the data management policy to use
when creating a server (peer) Region. |
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsPropertyprotected Class<? extends Annotation> getAnnotationType()
Annotation type that configures and creates Regions
for application service Methods that are annotated with Spring's Cache Abstraction Annotations.getAnnotationType in class AbstractAnnotationConfigSupportAnnotation type that configures and creates Regions
for application service Methods that are annotated with Spring's Cache Abstraction Annotations.EnableCachingDefinedRegions,
Annotation,
Classprotected CachingDefinedRegionsConfiguration.CacheNameResolver getCacheNameResolver()
CachingDefinedRegionsConfiguration.CacheNameResolver to resolve all the declared cache name on Spring application
beans/components declared and registered in the Spring container (context).CachingDefinedRegionsConfiguration.CacheNameResolver to resolve all teh caches used by the Spring application.CachingDefinedRegionsConfiguration.CacheNameResolverpublic void setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
ClientRegionShortcut specifying the data management policy to use
when creating a client Region.clientRegionShortcut - ClientRegionShortcut specifying the data management policy
to use when creating a client Region.ClientRegionShortcutprotected Optional<org.apache.geode.cache.client.ClientRegionShortcut> getClientRegionShortcut()
ClientRegionShortcut specifying the data management policy to use
when creating a client Region.Optional ClientRegionShortcut specifying the data management policy to use
when creating a client Region.ClientRegionShortcut,
setClientRegionShortcut(ClientRegionShortcut),
Optionalprotected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut()
ClientRegionShortcut specifying the data management policy to use
when creating a client Region; defaults to ClientRegionShortcut.PROXY.ClientRegionShortcut specifying the data management policy to use
when creating a client Region; defaults to ClientRegionShortcut.PROXY.ClientRegionShortcut,
getClientRegionShortcut()public void setPoolName(String poolName)
Pool used by all caching-defined client Regions
to send and receive data between the client and server.poolName - String containing the name of the dedicated Pool for all
caching-defined client Regions.protected Optional<String> getPoolName()
Pool used by all caching-defined client Regions
to send and receive data between the client and server.Optional name of the dedicated Pool used by all caching-defined
client Regions.setPoolName(String),
Optionalprotected String resolvePoolName()
Pool used by all caching-defined client Regions
to send and receive data between the client and server; defaults to DEFAULT.name of the dedicated Pool used by all caching-defined
client Regions; defaults to DEFAULT.getPoolName()public void setServerRegionShortcut(org.apache.geode.cache.RegionShortcut serverRegionShortcut)
RegionShortcut specifying the data management policy to use
when creating a server (peer) Region.serverRegionShortcut - RegionShortcut specifying the data management policy to use
when creating a server (peer) Region.RegionShortcutprotected Optional<org.apache.geode.cache.RegionShortcut> getServerRegionShortcut()
RegionShortcut specifying the data management policy to use
when creating a server (peer) Region.Optional RegionShortcut specifying the data management policy to use
when creating a server (peer) Region.setServerRegionShortcut(RegionShortcut),
RegionShortcut,
Optionalprotected org.apache.geode.cache.RegionShortcut resolveServerRegionShortcut()
RegionShortcut specifying the data management policy to use
when creating a server (peer) Region; defaults to RegionShortcut.PARTITION.RegionShortcut specifying the data management policy to use
when creating a server (peer) Region; defaults to RegionShortcut.PARTITION.RegionShortcut,
getServerRegionShortcut()public void setImportMetadata(AnnotationMetadata importMetadata)
setImportMetadata in interface ImportAware@Bean public BeanPostProcessor cachingAnnotationsRegionBeanRegistrar(ConfigurableBeanFactory beanFactory)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.