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
.EvictionActionType
public abstract int maximum
EvictionAttributes.DEFAULT_ENTRIES_MAXIMUM
public abstract String objectSizerName
ObjectSizer
defined in the Spring application context
used to size Region
entry values.
Defaults to empty.ObjectSizer
public abstract String[] regionNames
Regions
in which this Eviction policy will be applied.
Defaults to empty.public abstract EvictionPolicyType type
EvictionPolicyType.ENTRY_COUNT
.EvictionPolicyType
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.