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)
maxSize - Maximum allowed size of cache before entry will start getting evicted.public FifoEvictionPolicyFactory(int maxSize,
int batchSize,
long maxMemSize)
maxSize - Maximum allowed size of cache before entry will start getting evicted.batchSize - Batch size.maxMemSize - Sets maximum allowed cache size in bytes.public FifoEvictionPolicy<K,V> create()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023