@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @EnableGemfireCaching @Import(value=CachingDefinedRegionsConfiguration.class) public @interface EnableCachingDefinedRegions
EnableCachingDefinedRegions
annotation marks a Spring @Configuration
application
annotated class to enable the creation of GemFire/Geode Regions
based on Spring's Cache Abstraction
Annotations applied to application service methods and types.
Additionally, this annotation enables Spring's Cache Abstraction with SDG's EnableGemfireCaching
annotation,
which declares Spring's EnableCaching
annotation as well as declares
the SDG GemfireCacheManager
bean definition.Documented
,
Inherited
,
Retention
,
Target
,
Region
,
RegionShortcut
,
ClientRegionShortcut
,
Pool
,
Configuration
,
Import
,
EnableGemfireCaching
,
CachingDefinedRegionsConfiguration
Modifier and Type | Optional Element and Description |
---|---|
org.apache.geode.cache.client.ClientRegionShortcut |
clientRegionShortcut
When this annotation is applied to a cache client application, the clientRegionShortcut attribute
specifies the data management policy applied to client
Regions where persistent entities are
only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation. |
String |
poolName
When this annotation is applied to a cache client application, the poolName attribute refers to
the default name of the GemFire/Geode
Pool assigned to client Region(s) . |
org.apache.geode.cache.RegionShortcut |
serverRegionShortcut
When this annotation is applied to a peer cache application, the serverRegionShortcut attribute
specifies the data management policy applied to server
Regions where persistent entities are
only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation. |
public abstract org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut
Regions
where persistent entities are
only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation.
Defaults to ClientRegionShortcut.PROXY
.public abstract String poolName
Pool
assigned to client Region(s)
.
This value can be overridden by annotating entities with the ClientRegion
annotation.
Defaults to DEFAULT.public abstract org.apache.geode.cache.RegionShortcut serverRegionShortcut
Regions
where persistent entities are
only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation.
Defaults to RegionShortcut.PARTITION
.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.