public class CacheEvictionConfig extends Object implements EvictionConfig, DataSerializable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CacheEvictionConfig.CacheMaxSizePolicy
Maximum Size Policy
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_ENTRY_COUNT
Default maximum entry count of cache.
|
Constructor and Description |
---|
CacheEvictionConfig() |
CacheEvictionConfig(CacheEvictionConfig config) |
CacheEvictionConfig(int size,
CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy,
EvictionPolicy evictionPolicy) |
Modifier and Type | Method and Description |
---|---|
CacheEvictionConfigReadOnly |
getAsReadOnly() |
EvictionPolicy |
getEvictionPolicy() |
EvictionPolicyType |
getEvictionPolicyType()
Gets the type of eviction policy.
|
EvictionStrategyType |
getEvictionStrategyType()
Gets the type of eviction strategy.
|
CacheEvictionConfig.CacheMaxSizePolicy |
getMaxSizePolicy() |
int |
getSize() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
CacheEvictionConfig |
setEvictionPolicy(EvictionPolicy evictionPolicy) |
CacheEvictionConfig |
setMaxSizePolicy(CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy) |
CacheEvictionConfig |
setSize(int size) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final int DEFAULT_MAX_ENTRY_COUNT
public CacheEvictionConfig()
public CacheEvictionConfig(int size, CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy, EvictionPolicy evictionPolicy)
public CacheEvictionConfig(CacheEvictionConfig config)
public CacheEvictionConfigReadOnly getAsReadOnly()
public int getSize()
public CacheEvictionConfig setSize(int size)
public CacheEvictionConfig.CacheMaxSizePolicy getMaxSizePolicy()
public CacheEvictionConfig setMaxSizePolicy(CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy)
public EvictionPolicy getEvictionPolicy()
public CacheEvictionConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
public EvictionStrategyType getEvictionStrategyType()
EvictionConfig
getEvictionStrategyType
in interface EvictionConfig
public EvictionPolicyType getEvictionPolicyType()
EvictionConfig
getEvictionPolicyType
in interface EvictionConfig
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 © 2014 Hazelcast, Inc.. All Rights Reserved.