Annotation Interface EnableCompression
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(CompressionConfiguration.class)
public @interface EnableCompression
The
EnableCompression
annotation marks a Spring @Configuration
annotated application
Class
to configure and enable Pivotal GemFire/Apache Geode Region
data compression.- Author:
- John Blum
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionReference to thename
of a bean having typeCompressor
registered in the Spring container to handleRegion
compression.String[]
Identifies all theRegions
by name in which the data compression will be enabled.
-
Element Details
-
compressorBeanName
String compressorBeanNameReference to thename
of a bean having typeCompressor
registered in the Spring container to handleRegion
compression. Defaults to snappyCompressor. Set the spring.data.gemfire.cache.compression.compressor-bean-name in application.properties.- Default:
- "SnappyCompressor"
-
regionNames
String[] regionNamesIdentifies all theRegions
by name in which the data compression will be enabled. Defaults to allRegions
. Set the spring.data.gemfire.cache.compression.region-names property in application.properties.- Default:
- {}
-