@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=CompressionConfiguration.class) public @interface EnableCompression
EnableCompression annotation marks a Spring @Configuration annotated application
Class to configure and enable Pivotal GemFire/Apache Geode Region data compression.Annotation,
Import,
CompressionConfiguration| Modifier and Type | Optional Element and Description |
|---|---|
String |
compressorBeanName
Reference to the
name of a bean having type Compressor
registered in the Spring container to handle Region compression. |
String[] |
regionNames
Identifies all the
Regions by name in which the data compression will be enabled. |
public abstract String compressorBeanName
name of a bean having type Compressor
registered in the Spring container to handle Region compression.
Defaults to snappyCompressor.
Set the spring.data.gemfire.cache.compression.compressor-bean-name
in application.properties.public abstract String[] regionNames
Regions by name in which the data compression will be enabled.
Defaults to all Regions.
Set the spring.data.gemfire.cache.compression.region-names property
in application.properties.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.