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
Modifier and TypeOptional ElementDescriptionAction to take on anRegion
entry when evicted.int
Threshold applied for entry count Eviction.Name of a Spring bean of typeObjectSizer
defined in the Spring application context used to sizeRegion
entry values.String[]
Names of all theRegions
in which this Eviction policy will be applied.Eviction algorithm used during Eviction.
-
Element Details
-
action
EvictionActionType actionAction to take on anRegion
entry 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 typeObjectSizer
defined in the Spring application context used to sizeRegion
entry values. Defaults to empty.- See Also:
-
ObjectSizer
- Default:
- ""
-
regionNames
String[] regionNamesNames of all theRegions
in 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
-