Spring Data for VMware GemFire
Annotation Interface EnableEviction.EvictionPolicy
- Enclosing class:
- EnableEviction
public static @interface EnableEviction.EvictionPolicy
Definition for a specific Eviction policy that can be applied to 1 or more
Regions.
An Eviction policy defines the maximum (a.k.a. threshold) along with ObjectSizer used to size
Region entry values and the action applied when Region entries are to be evicted.
Additionally, the Eviction policy defines the algorithm used (eviction based on entry count, JVM Heap percentage
or system memory size used) to determine when an Eviction should occur.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAction to take on anRegionentry when evicted.intThreshold applied for entry count Eviction.Name of a Spring bean of typeObjectSizerdefined in the Spring application context used to sizeRegionentry values.String[]Names of all theRegionsin which this Eviction policy will be applied.Eviction algorithm used during Eviction.
-
Element Details
-
action
EvictionActionType actionAction to take on anRegionentry when evicted. Defaults toEvictionActionType.LOCAL_DESTROY.- See Also:
- Default:
- LOCAL_DESTROY
-
maximum
int maximumThreshold applied for entry count Eviction. Defaults toEvictionAttributes.DEFAULT_ENTRIES_MAXIMUM- Default:
- 900
-
objectSizerName
String objectSizerNameName of a Spring bean of typeObjectSizerdefined in the Spring application context used to sizeRegionentry values. Defaults to empty.- See Also:
-
ObjectSizer
- Default:
- ""
-
regionNames
String[] regionNamesNames of all theRegionsin which this Eviction policy will be applied. Defaults to empty.- Default:
- {}
-
type
EvictionPolicyType typeEviction algorithm used during Eviction. Defaults toEvictionPolicyType.ENTRY_COUNT.- See Also:
- Default:
- ENTRY_COUNT
-