Annotation Interface EnableCachingDefinedRegions
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@EnableGemfireCaching
@Import(CachingDefinedRegionsConfiguration.class)
public @interface EnableCachingDefinedRegions
The
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.- Since:
- 2.0.0
- See Also:
-
Documented
Inherited
Retention
Target
Region
RegionShortcut
ClientRegionShortcut
Pool
Configuration
Import
EnableGemfireCaching
CachingDefinedRegionsConfiguration
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionorg.apache.geode.cache.client.ClientRegionShortcut
When this annotation is applied to a cache client application, the clientRegionShortcut attribute specifies the data management policy applied to clientRegions
where persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation.When this annotation is applied to a cache client application, the poolName attribute refers to the default name of the GemFire/GeodePool
assigned to clientRegion(s)
.org.apache.geode.cache.RegionShortcut
When this annotation is applied to a peer cache application, the serverRegionShortcut attribute specifies the data management policy applied to serverRegions
where persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation.
-
Element Details
-
clientRegionShortcut
org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcutWhen this annotation is applied to a cache client application, the clientRegionShortcut attribute specifies the data management policy applied to clientRegions
where persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation. Defaults toClientRegionShortcut.PROXY
.- Default:
- PROXY
-
poolName
String poolNameWhen this annotation is applied to a cache client application, the poolName attribute refers to the default name of the GemFire/GeodePool
assigned to clientRegion(s)
. This value can be overridden by annotating entities with theClientRegion
annotation. Defaults to DEFAULT.- Default:
- "DEFAULT"
-
serverRegionShortcut
org.apache.geode.cache.RegionShortcut serverRegionShortcutWhen this annotation is applied to a peer cache application, the serverRegionShortcut attribute specifies the data management policy applied to serverRegions
where persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation. Defaults toRegionShortcut.PARTITION
.- Default:
- PARTITION
-