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 |
---|---|
static EvictionPolicy |
DEFAULT_EVICTION_POLICY
Default Eviction Policy.
|
static int |
DEFAULT_MAX_ENTRY_COUNT
Default maximum entry count.
|
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) |
Modifier and Type | Method and Description |
---|---|
EvictionConfig |
getAsReadOnly() |
EvictionPolicy |
getEvictionPolicy() |
EvictionPolicyType |
getEvictionPolicyType()
Gets the type of eviction policy.
|
EvictionStrategyType |
getEvictionStrategyType()
Gets the type of eviction strategy.
|
EvictionConfig.MaxSizePolicy |
getMaximumSizePolicy() |
int |
getSize() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
EvictionConfig |
setEvictionPolicy(EvictionPolicy evictionPolicy) |
EvictionConfig |
setMaximumSizePolicy(EvictionConfig.MaxSizePolicy maxSizePolicy) |
EvictionConfig |
setSize(int size) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final int DEFAULT_MAX_ENTRY_COUNT
public static final EvictionPolicy DEFAULT_EVICTION_POLICY
protected int size
protected EvictionConfig.MaxSizePolicy maxSizePolicy
protected EvictionPolicy evictionPolicy
protected EvictionConfig readOnly
public EvictionConfig()
public EvictionConfig(int size, EvictionConfig.MaxSizePolicy maxSizePolicy, EvictionPolicy evictionPolicy)
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 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.