|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.CacheEvictionConfig
public class CacheEvictionConfig
Configuration for cache's capacity. You can set a limit for number of entries or total memory cost of entries.
Nested Class Summary | |
---|---|
static class |
CacheEvictionConfig.CacheMaxSizePolicy
Maximum Size Policy |
Field Summary | |
---|---|
static int |
DEFAULT_MAX_ENTRY_COUNT
Default maximum entry count of cache. |
Constructor Summary | |
---|---|
CacheEvictionConfig()
|
|
CacheEvictionConfig(CacheEvictionConfig config)
|
|
CacheEvictionConfig(int size,
CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy,
EvictionPolicy evictionPolicy)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_ENTRY_COUNT
Constructor Detail |
---|
public CacheEvictionConfig()
public CacheEvictionConfig(int size, CacheEvictionConfig.CacheMaxSizePolicy maxSizePolicy, EvictionPolicy evictionPolicy)
public CacheEvictionConfig(CacheEvictionConfig config)
Method Detail |
---|
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
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |