public static @interface EnableEviction.EvictionPolicy
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.| Modifier and Type | Optional Element and Description |
|---|---|
EvictionActionType |
action
Action to take on an
Region entry when evicted. |
int |
maximum
Threshold applied for entry count Eviction.
|
String |
objectSizerName
Name of a Spring bean of type
ObjectSizer defined in the Spring application context
used to size Region entry values. |
String[] |
regionNames
Names of all the
Regions in which this Eviction policy will be applied. |
EvictionPolicyType |
type
Eviction algorithm used during Eviction.
|
public abstract EvictionActionType action
Region entry when evicted.
Defaults to EvictionActionType.LOCAL_DESTROY.EvictionActionTypepublic abstract int maximum
EvictionAttributes.DEFAULT_ENTRIES_MAXIMUMpublic abstract String objectSizerName
ObjectSizer defined in the Spring application context
used to size Region entry values.
Defaults to empty.ObjectSizerpublic abstract String[] regionNames
Regions in which this Eviction policy will be applied.
Defaults to empty.public abstract EvictionPolicyType type
EvictionPolicyType.ENTRY_COUNT.EvictionPolicyTypeCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.