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, setMaxSize
public FifoEvictionPolicyFactory()
public FifoEvictionPolicyFactory(int maxSize)
public FifoEvictionPolicyFactory(int maxSize, int batchSize, long maxMemSize)
public FifoEvictionPolicy<K,V> create()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019