EvictionConfigReadOnly
instead of this@Deprecated public class CacheEvictionConfigReadOnly extends CacheEvictionConfig
CacheEvictionConfig
.CacheEvictionConfig.CacheMaxSizePolicy
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 |
---|
CacheEvictionConfigReadOnly(EvictionConfig config)
Deprecated.
|
getAsReadOnly, getMaxSizePolicy, toString
equals, getComparator, getComparatorClassName, getEvictionPolicy, getEvictionPolicyType, getEvictionStrategyType, getMaximumSizePolicy, getSize, hashCode, readData, writeData
public CacheEvictionConfigReadOnly(EvictionConfig config)
public CacheEvictionConfigReadOnly 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 CacheEvictionConfig
size
- the size which is used by the EvictionConfig.MaxSizePolicy
public CacheEvictionConfigReadOnly setMaximumSizePolicy(EvictionConfig.MaxSizePolicy maxSizePolicy)
EvictionConfig
EvictionConfig.MaxSizePolicy
of this eviction configuration.setMaximumSizePolicy
in class CacheEvictionConfig
maxSizePolicy
- the EvictionConfig.MaxSizePolicy
of this eviction configurationpublic CacheEvictionConfig setMaxSizePolicy(CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy)
CacheEvictionConfig
EvictionConfig.MaxSizePolicy
by using specified
CacheEvictionConfig.CacheMaxSizePolicy
.setMaxSizePolicy
in class CacheEvictionConfig
cacheMaxSizePolicy
- CacheEvictionConfig.CacheMaxSizePolicy
to be converted
and set as EvictionConfig.MaxSizePolicy
CacheEvictionConfig
public CacheEvictionConfigReadOnly setEvictionPolicy(EvictionPolicy evictionPolicy)
EvictionConfig
EvictionPolicy
of this eviction configuration.setEvictionPolicy
in class CacheEvictionConfig
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 CacheEvictionConfig
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 CacheEvictionConfig
comparator
- the instance of the configured EvictionPolicyComparator
implementationCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.