EvictionConfig
instead of this@Deprecated public class CacheEvictionConfig extends EvictionConfig
EvictionConfig
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
CacheEvictionConfig.CacheMaxSizePolicy
Deprecated.
Cache Maximum Size Policy
|
EvictionConfig.MaxSizePolicy
comparator, comparatorClassName, DEFAULT_EVICTION_POLICY, DEFAULT_MAX_ENTRY_COUNT, DEFAULT_MAX_ENTRY_COUNT_FOR_ON_HEAP_MAP, DEFAULT_MAX_SIZE_POLICY, evictionPolicy, maxSizePolicy, readOnly, size
Constructor and Description |
---|
CacheEvictionConfig()
Deprecated.
|
CacheEvictionConfig(EvictionConfig config)
Deprecated.
|
CacheEvictionConfig(int size,
CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy,
EvictionPolicy evictionPolicy)
Deprecated.
|
CacheEvictionConfig(int size,
CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy,
EvictionPolicyComparator comparator)
Deprecated.
|
CacheEvictionConfig(int size,
CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy,
String comparatorClassName)
Deprecated.
|
CacheEvictionConfig(int size,
EvictionConfig.MaxSizePolicy maxSizePolicy,
EvictionPolicy evictionPolicy)
Deprecated.
|
CacheEvictionConfig(int size,
EvictionConfig.MaxSizePolicy maxSizePolicy,
EvictionPolicyComparator comparator)
Deprecated.
|
CacheEvictionConfig(int size,
EvictionConfig.MaxSizePolicy maxSizePolicy,
String comparatorClassName)
Deprecated.
|
equals, getComparator, getComparatorClassName, getEvictionPolicy, getEvictionPolicyType, getEvictionStrategyType, getMaximumSizePolicy, getSize, hashCode, readData, writeData
public CacheEvictionConfig()
public CacheEvictionConfig(int size, EvictionConfig.MaxSizePolicy maxSizePolicy, EvictionPolicy evictionPolicy)
public CacheEvictionConfig(int size, CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy, EvictionPolicy evictionPolicy)
public CacheEvictionConfig(int size, EvictionConfig.MaxSizePolicy maxSizePolicy, String comparatorClassName)
public CacheEvictionConfig(int size, CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy, String comparatorClassName)
public CacheEvictionConfig(int size, EvictionConfig.MaxSizePolicy maxSizePolicy, EvictionPolicyComparator comparator)
public CacheEvictionConfig(int size, CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy, EvictionPolicyComparator comparator)
public CacheEvictionConfig(EvictionConfig config)
public CacheEvictionConfig getAsReadOnly()
getAsReadOnly
in class EvictionConfig
public CacheEvictionConfig.CacheMaxSizePolicy getMaxSizePolicy()
EvictionConfig.getMaximumSizePolicy()
instead of thisEvictionConfig.MaxSizePolicy
as
CacheEvictionConfig.CacheMaxSizePolicy
public CacheEvictionConfig setMaxSizePolicy(CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy)
EvictionConfig.setMaximumSizePolicy(MaxSizePolicy)
instead of thisEvictionConfig.MaxSizePolicy
by using specified
CacheEvictionConfig.CacheMaxSizePolicy
.cacheMaxSizePolicy
- CacheEvictionConfig.CacheMaxSizePolicy
to be converted
and set as EvictionConfig.MaxSizePolicy
CacheEvictionConfig
public CacheEvictionConfig setMaximumSizePolicy(EvictionConfig.MaxSizePolicy maxSizePolicy)
EvictionConfig
EvictionConfig.MaxSizePolicy
of this eviction configuration.setMaximumSizePolicy
in class EvictionConfig
maxSizePolicy
- the EvictionConfig.MaxSizePolicy
of this eviction configurationpublic CacheEvictionConfig setSize(int size)
EvictionConfig
EvictionConfig.MaxSizePolicy
.
The interpretation of the value depends on the configured EvictionConfig.MaxSizePolicy
.
Accepts any positive number. The default value is 10000.
setSize
in class EvictionConfig
size
- the size which is used by the EvictionConfig.MaxSizePolicy
public CacheEvictionConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
EvictionConfig
EvictionPolicy
of this eviction configuration.setEvictionPolicy
in class EvictionConfig
evictionPolicy
- the EvictionPolicy
of this eviction configurationpublic CacheEvictionConfig setComparatorClassName(String comparatorClassName)
EvictionConfig
EvictionPolicyComparator
implementation.
Only one of the comparator class name
and comparator
can be configured in the eviction configuration.
setComparatorClassName
in class EvictionConfig
comparatorClassName
- the class name of the configured EvictionPolicyComparator
implementationpublic CacheEvictionConfig setComparator(EvictionPolicyComparator comparator)
EvictionConfig
EvictionPolicyComparator
implementation.
Only one of the comparator class name
and comparator
can be configured in the eviction configuration.
setComparator
in class EvictionConfig
comparator
- the instance of the configured EvictionPolicyComparator
implementationpublic String toString()
toString
in class EvictionConfig
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.