public class EvictionConfig extends Object implements EvictionConfiguration, DataSerializable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
EvictionConfig.MaxSizePolicy
Maximum Size Policy
|
Modifier and Type | Field and Description |
---|---|
protected EvictionPolicyComparator |
comparator |
protected String |
comparatorClassName |
static EvictionPolicy |
DEFAULT_EVICTION_POLICY
Default Eviction Policy.
|
static int |
DEFAULT_MAX_ENTRY_COUNT
Default maximum entry count.
|
static EvictionConfig.MaxSizePolicy |
DEFAULT_MAX_SIZE_POLICY
Default Max-Size Policy.
|
protected EvictionPolicy |
evictionPolicy |
protected EvictionConfig.MaxSizePolicy |
maxSizePolicy |
protected EvictionConfig |
readOnly |
protected int |
size |
Constructor and Description |
---|
EvictionConfig() |
EvictionConfig(EvictionConfig config) |
EvictionConfig(int size,
EvictionConfig.MaxSizePolicy maxSizePolicy,
EvictionPolicy evictionPolicy) |
EvictionConfig(int size,
EvictionConfig.MaxSizePolicy maxSizePolicy,
EvictionPolicyComparator comparator) |
EvictionConfig(int size,
EvictionConfig.MaxSizePolicy maxSizePolicy,
String comparatorClassName) |
public static final int DEFAULT_MAX_ENTRY_COUNT
public static final EvictionConfig.MaxSizePolicy DEFAULT_MAX_SIZE_POLICY
public static final EvictionPolicy DEFAULT_EVICTION_POLICY
protected int size
protected EvictionConfig.MaxSizePolicy maxSizePolicy
protected EvictionPolicy evictionPolicy
protected String comparatorClassName
protected EvictionPolicyComparator comparator
protected EvictionConfig readOnly
public EvictionConfig()
public EvictionConfig(int size, EvictionConfig.MaxSizePolicy maxSizePolicy, EvictionPolicy evictionPolicy)
public EvictionConfig(int size, EvictionConfig.MaxSizePolicy maxSizePolicy, String comparatorClassName)
public EvictionConfig(int size, EvictionConfig.MaxSizePolicy maxSizePolicy, EvictionPolicyComparator comparator)
public EvictionConfig(EvictionConfig config)
public EvictionConfig getAsReadOnly()
public int getSize()
public EvictionConfig setSize(int size)
public EvictionConfig.MaxSizePolicy getMaximumSizePolicy()
public EvictionConfig setMaximumSizePolicy(EvictionConfig.MaxSizePolicy maxSizePolicy)
public EvictionPolicy getEvictionPolicy()
public EvictionConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
public String getComparatorClassName()
EvictionConfiguration
EvictionPolicyComparator
implementation.getComparatorClassName
in interface EvictionConfiguration
EvictionPolicyComparator
implementationpublic EvictionConfig setComparatorClassName(String comparatorClassName)
public EvictionPolicyComparator getComparator()
EvictionConfiguration
EvictionPolicyComparator
implementation.getComparator
in interface EvictionConfiguration
EvictionPolicyComparator
implementation.public EvictionConfig setComparator(EvictionPolicyComparator comparator)
public EvictionStrategyType getEvictionStrategyType()
EvictionConfiguration
getEvictionStrategyType
in interface EvictionConfiguration
public EvictionPolicyType getEvictionPolicyType()
EvictionConfiguration
getEvictionPolicyType
in interface EvictionConfiguration
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.