Class FifoEvictionPolicyFactory<K,V>
- java.lang.Object
- 
- org.apache.ignite.cache.eviction.AbstractEvictionPolicyFactory<FifoEvictionPolicy<K,V>>
- 
- org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicyFactory<K,V>
 
 
- 
- All Implemented Interfaces:
- Serializable,- javax.cache.configuration.Factory<FifoEvictionPolicy<K,V>>
 
 public class FifoEvictionPolicyFactory<K,V> extends AbstractEvictionPolicyFactory<FifoEvictionPolicy<K,V>> Factory class forFifoEvictionPolicy. Creates cache Eviction policy based onFirst In First Out (FIFO)algorithm and supports batch eviction.The eviction starts in the following cases: - The cache size becomes batchSizeelements greater than the maximum size.
- The size of cache entries in bytes becomes greater than the maximum memory size. The size of cache entry calculates as sum of key size and value size.
 maxMemSize == 0).batchSizeelements will be evicted in this case. The defaultbatchSizevalue is1.FifoEvictionPolicyimplementation is very efficient since it does not create any additional table-like data structures. TheFIFOordering information is maintained by attaching ordering metadata to cache entries.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description FifoEvictionPolicyFactory()Constructor.FifoEvictionPolicyFactory(int maxSize)Constructor.FifoEvictionPolicyFactory(int maxSize, int batchSize, long maxMemSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FifoEvictionPolicy<K,V>create()- 
Methods inherited from class org.apache.ignite.cache.eviction.AbstractEvictionPolicyFactorygetBatchSize, getMaxMemorySize, getMaxSize, setBatchSize, setMaxMemorySize, setMaxSize
 
- 
 
- 
- 
- 
Constructor Detail- 
FifoEvictionPolicyFactorypublic FifoEvictionPolicyFactory() Constructor.
 - 
FifoEvictionPolicyFactorypublic FifoEvictionPolicyFactory(int maxSize) Constructor.- Parameters:
- maxSize- Maximum allowed size of cache before entry will start getting evicted.
 
 - 
FifoEvictionPolicyFactorypublic FifoEvictionPolicyFactory(int maxSize, int batchSize, long maxMemSize)- Parameters:
- maxSize- Maximum allowed size of cache before entry will start getting evicted.
- batchSize- Batch size.
- maxMemSize- Sets maximum allowed cache size in bytes.
 
 
- 
 - 
Method Detail- 
createpublic FifoEvictionPolicy<K,V> create() 
 
- 
 
-