Spring Data for VMware GemFire
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:
-
DocumentedInheritedRetentionTargetRegionRegionShortcutClientRegionShortcutPoolConfigurationImportEnableGemfireCachingCachingDefinedRegionsConfiguration
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionorg.apache.geode.cache.client.ClientRegionShortcutWhen this annotation is applied to a cache client application, the clientRegionShortcut attribute specifies the data management policy applied to clientRegionswhere persistent entities are only annotated with the genericRegionmapping 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/GeodePoolassigned to clientRegion(s).org.apache.geode.cache.RegionShortcutWhen this annotation is applied to a peer cache application, the serverRegionShortcut attribute specifies the data management policy applied to serverRegionswhere persistent entities are only annotated with the genericRegionmapping 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 clientRegionswhere persistent entities are only annotated with the genericRegionmapping 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/GeodePoolassigned to clientRegion(s). This value can be overridden by annotating entities with theClientRegionannotation. 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 serverRegionswhere persistent entities are only annotated with the genericRegionmapping annotation, or the non-data policy specific mapping annotation. Defaults toRegionShortcut.PARTITION.- Default:
- PARTITION
-