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 Summary
Constructors Constructor Description AbstractEvictionPolicyFactory()
-
Method Summary
All 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
-
setMaxSize
public 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.
-
getMaxSize
public 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.
-
setBatchSize
public AbstractEvictionPolicyFactory setBatchSize(int batchSize)
Sets batch size.- Parameters:
batchSize- Batch size.- Returns:
thisfor chaining.
-
getBatchSize
public int getBatchSize()
Gets batch size.- Returns:
- batch size.
-
setMaxMemorySize
public AbstractEvictionPolicyFactory setMaxMemorySize(long maxMemSize)
Sets maximum allowed cache size in bytes.- Parameters:
maxMemSize- Maximum allowed cache size in bytes.- Returns:
thisfor chaining.
-
getMaxMemorySize
public long getMaxMemorySize()
Gets maximum allowed cache size in bytes.- Returns:
- maximum allowed cache size in bytes.
-
-