Annotation 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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Reference to the name of a bean having type Compressor registered in the Spring container to handle Region compression.
    Identifies all the Regions by name in which the data compression will be enabled.
  • Element Details

    • compressorBeanName

      String compressorBeanName
      Reference to the 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.
      Default:
      "SnappyCompressor"
    • regionNames

      String[] regionNames
      Identifies all the 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.
      Default:
      {}