Package org.apache.ignite.cache.eviction
Class AbstractEvictionPolicyFactory<T>
- java.lang.Object
- 
- org.apache.ignite.cache.eviction.AbstractEvictionPolicyFactory<T>
 
- 
- All Implemented Interfaces:
- Serializable,- javax.cache.configuration.Factory<T>
 - Direct Known Subclasses:
- FifoEvictionPolicyFactory,- LruEvictionPolicyFactory,- SortedEvictionPolicyFactory
 
 public abstract class AbstractEvictionPolicyFactory<T> extends Object implements javax.cache.configuration.Factory<T> Common functionality implementation for eviction policies factories.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractEvictionPolicyFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBatchSize()Gets batch size.longgetMaxMemorySize()Gets maximum allowed cache size in bytes.intgetMaxSize()Gets maximum allowed size of cache before entry will start getting evicted.AbstractEvictionPolicyFactorysetBatchSize(int batchSize)Sets batch size.AbstractEvictionPolicyFactorysetMaxMemorySize(long maxMemSize)Sets maximum allowed cache size in bytes.AbstractEvictionPolicyFactorysetMaxSize(int max)Sets maximum allowed size of cache before entry will start getting evicted.
 
- 
- 
- 
Method Detail- 
setMaxSizepublic AbstractEvictionPolicyFactory setMaxSize(int max) Sets maximum allowed size of cache before entry will start getting evicted.- Parameters:
- max- Maximum allowed size of cache before entry will start getting evicted.
- Returns:
- thisfor chaining.
 
 - 
getMaxSizepublic int getMaxSize() Gets maximum allowed size of cache before entry will start getting evicted.- Returns:
- Maximum allowed size of cache before entry will start getting evicted.
 
 - 
setBatchSizepublic AbstractEvictionPolicyFactory setBatchSize(int batchSize) Sets batch size.- Parameters:
- batchSize- Batch size.
- Returns:
- thisfor chaining.
 
 - 
getBatchSizepublic int getBatchSize() Gets batch size.- Returns:
- batch size.
 
 - 
setMaxMemorySizepublic AbstractEvictionPolicyFactory setMaxMemorySize(long maxMemSize) Sets maximum allowed cache size in bytes.- Parameters:
- maxMemSize- Maximum allowed cache size in bytes.
- Returns:
- thisfor chaining.
 
 - 
getMaxMemorySizepublic long getMaxMemorySize() Gets maximum allowed cache size in bytes.- Returns:
- maximum allowed cache size in bytes.
 
 
- 
 
-