Annotation Interface EnableOffHeap
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(OffHeapConfiguration.class)
@UsesGemFireProperties
public @interface EnableOffHeap
The
EnableOffHeap
annotation marks a Spring @Configuration
annotated application
Class
to configure and enable Off-Heap Memory data storage in cache Regions
.- Since:
- 1.9.0
- See Also:
-
Annotation
Import
OffHeapConfiguration
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionSpecifies the size of off-heap memory in megabytes (m) or gigabytes (g). -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Identifies all theRegions
by name in which the Off-Heap Memory settings will be applied.
-
Element Details
-
memorySize
String memorySizeSpecifies the size of off-heap memory in megabytes (m) or gigabytes (g). For example:off-heap-memory-size=4096m off-heap-memory-size=120g
-
-
-
regionNames
String[] regionNamesIdentifies all theRegions
by name in which the Off-Heap Memory settings will be applied. Defaults to allRegions
. Use the spring.data.gemfire.cache.off-heap.region-names property in application.properties.- Default:
- {}
-