public class EvictionConfigReadOnly extends EvictionConfig
EvictionConfig
.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 |
---|
EvictionConfigReadOnly(EvictionConfig config)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
EvictionConfig |
setComparator(com.hazelcast.internal.eviction.EvictionPolicyComparator comparator)
Deprecated.
Sets the instance of the configured
EvictionPolicyComparator implementation. |
EvictionConfig |
setComparatorClassName(String comparatorClassName)
Deprecated.
Sets the class name of the configured
EvictionPolicyComparator implementation. |
EvictionConfigReadOnly |
setEvictionPolicy(EvictionPolicy evictionPolicy)
Deprecated.
Sets the
EvictionPolicy of this eviction configuration. |
EvictionConfigReadOnly |
setMaximumSizePolicy(EvictionConfig.MaxSizePolicy maxSizePolicy)
Deprecated.
Sets the
EvictionConfig.MaxSizePolicy of this eviction configuration. |
EvictionConfigReadOnly |
setSize(int size)
Deprecated.
Sets the size which is used by the
EvictionConfig.MaxSizePolicy . |
equals, getAsReadOnly, getComparator, getComparatorClassName, getEvictionPolicy, getEvictionPolicyType, getEvictionStrategyType, getMaximumSizePolicy, getSize, hashCode, readData, toString, writeData
public EvictionConfigReadOnly(EvictionConfig config)
public EvictionConfigReadOnly 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 EvictionConfigReadOnly setMaximumSizePolicy(EvictionConfig.MaxSizePolicy maxSizePolicy)
EvictionConfig
EvictionConfig.MaxSizePolicy
of this eviction configuration.setMaximumSizePolicy
in class EvictionConfig
maxSizePolicy
- the EvictionConfig.MaxSizePolicy
of this eviction configurationpublic EvictionConfigReadOnly setEvictionPolicy(EvictionPolicy evictionPolicy)
EvictionConfig
EvictionPolicy
of this eviction configuration.setEvictionPolicy
in class EvictionConfig
evictionPolicy
- the EvictionPolicy
of this eviction configurationpublic EvictionConfig 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 EvictionConfig setComparator(com.hazelcast.internal.eviction.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
implementationCopyright © 2018 Hazelcast, Inc.. All rights reserved.