public class FifoEvictionPolicyFactory<K,V> extends AbstractEvictionPolicyFactory<FifoEvictionPolicy<K,V>>
FifoEvictionPolicy.
Creates cache Eviction policy based on First In First Out (FIFO) algorithm and supports batch eviction.
The eviction starts in the following cases:
batchSize elements greater than the maximum size.maxMemSize == 0).
batchSize elements will be evicted in this case. The default batchSize value is 1.
FifoEvictionPolicy implementation is very efficient since it does not create any additional
table-like data structures. The FIFO ordering information is
maintained by attaching ordering metadata to cache entries.
| Constructor and Description |
|---|
FifoEvictionPolicyFactory()
Constructor.
|
FifoEvictionPolicyFactory(int maxSize)
Constructor.
|
FifoEvictionPolicyFactory(int maxSize,
int batchSize,
long maxMemSize) |
| Modifier and Type | Method and Description |
|---|---|
FifoEvictionPolicy<K,V> |
create() |
getBatchSize, getMaxMemorySize, getMaxSize, setBatchSize, setMaxMemorySize, setMaxSizepublic FifoEvictionPolicyFactory()
public FifoEvictionPolicyFactory(int maxSize)
public FifoEvictionPolicyFactory(int maxSize,
int batchSize,
long maxMemSize)
public FifoEvictionPolicy<K,V> create()
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025