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,
com.hazelcast.internal.eviction.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,
com.hazelcast.internal.eviction.EvictionPolicyComparator comparator)
Deprecated.
|
CacheEvictionConfig(int size,
EvictionConfig.MaxSizePolicy maxSizePolicy,
String comparatorClassName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
CacheEvictionConfig |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
CacheEvictionConfig.CacheMaxSizePolicy |
getMaxSizePolicy()
Deprecated.
Use
EvictionConfig.getMaximumSizePolicy() instead of this |
CacheEvictionConfig |
setComparator(com.hazelcast.internal.eviction.EvictionPolicyComparator comparator)
Deprecated.
Sets the instance of the configured
EvictionPolicyComparator implementation. |
CacheEvictionConfig |
setComparatorClassName(String comparatorClassName)
Deprecated.
Sets the class name of the configured
EvictionPolicyComparator implementation. |
CacheEvictionConfig |
setEvictionPolicy(EvictionPolicy evictionPolicy)
Deprecated.
Sets the
EvictionPolicy of this eviction configuration. |
CacheEvictionConfig |
setMaximumSizePolicy(EvictionConfig.MaxSizePolicy maxSizePolicy)
Deprecated.
Sets the
EvictionConfig.MaxSizePolicy of this eviction configuration. |
CacheEvictionConfig |
setMaxSizePolicy(CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy)
Deprecated.
Use
EvictionConfig.setMaximumSizePolicy(MaxSizePolicy) instead of this |
CacheEvictionConfig |
setSize(int size)
Deprecated.
Sets the size which is used by the
EvictionConfig.MaxSizePolicy . |
String |
toString()
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, com.hazelcast.internal.eviction.EvictionPolicyComparator comparator)
public CacheEvictionConfig(int size, CacheEvictionConfig.CacheMaxSizePolicy cacheMaxSizePolicy, com.hazelcast.internal.eviction.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(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
implementationpublic String toString()
toString
in class EvictionConfig
Copyright © 2018 Hazelcast, Inc.. All rights reserved.