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
- Author:
- John Blum
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionWhen 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.
-
Element Details
-
clientRegionShortcut
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
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
-