@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=OffHeapConfiguration.class) @UsesGemFireProperties public @interface EnableOffHeap
EnableOffHeap annotation marks a Spring @Configuration annotated application
Class to configure and enable Off-Heap Memory data storage in cache Regions.Annotation,
Import,
OffHeapConfiguration| Modifier and Type | Required Element and Description |
|---|---|
String |
memorySize
Specifies the size of off-heap memory in megabytes (m) or gigabytes (g).
|
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
regionNames
Identifies all the
Regions by name in which the Off-Heap Memory settings will be applied. |
public abstract String memorySize
off-heap-memory-size=4096m
off-heap-memory-size=120g
Defaults to unset.
Use the spring.data.gemfire.cache.off-heap.memory-size property in application.properties.public abstract String[] regionNames
Regions by name in which the Off-Heap Memory settings will be applied.
Defaults to all Regions.
Use the spring.data.gemfire.cache.off-heap.region-names property in application.properties.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.