public class MapConfigReadOnly extends MapConfig
IMap
(read-only).DEFAULT_BACKUP_COUNT, DEFAULT_CACHED_DESERIALIZED_VALUES, DEFAULT_EVICTION_PERCENTAGE, DEFAULT_EVICTION_POLICY, DEFAULT_IN_MEMORY_FORMAT, DEFAULT_MAP_MERGE_POLICY, DEFAULT_MAX_IDLE_SECONDS, DEFAULT_METADATA_POLICY, DEFAULT_MIN_EVICTION_CHECK_MILLIS, DEFAULT_TTL_SECONDS, MAX_BACKUP_COUNT, MAX_EVICTION_PERCENTAGE, MIN_BACKUP_COUNT, MIN_EVICTION_PERCENTAGE
Modifier and Type | Method and Description |
---|---|
MapConfig |
addEntryListenerConfig(EntryListenerConfig listenerConfig)
Deprecated.
|
MapConfig |
addMapIndexConfig(MapIndexConfig mapIndexConfig)
Deprecated.
|
List<EntryListenerConfig> |
getEntryListenerConfigs()
Deprecated.
|
List<MapIndexConfig> |
getMapIndexConfigs()
Deprecated.
|
MapStoreConfig |
getMapStoreConfig()
Deprecated.
Returns the map store configuration
|
MaxSizeConfig |
getMaxSizeConfig()
Deprecated.
|
NearCacheConfig |
getNearCacheConfig()
Deprecated.
Returns the Near Cache configuration
|
PartitioningStrategyConfig |
getPartitioningStrategyConfig()
Deprecated.
|
List<MapPartitionLostListenerConfig> |
getPartitionLostListenerConfigs()
Deprecated.
|
List<QueryCacheConfig> |
getQueryCacheConfigs()
Deprecated.
Returns all
QueryCacheConfig instances defined on this MapConfig . |
WanReplicationRef |
getWanReplicationRef()
Deprecated.
Gets the WAN target replication reference.
|
MapConfig |
setAsyncBackupCount(int asyncBackupCount)
Deprecated.
Sets the number of asynchronous backups.
|
MapConfig |
setBackupCount(int backupCount)
Deprecated.
Number of synchronous backups.
|
MapConfig |
setCacheDeserializedValues(CacheDeserializedValues cacheDeserializedValues)
Deprecated.
Configure de-serialized value caching.
|
MapConfig |
setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
Deprecated.
|
MapConfig |
setEvictionPercentage(int evictionPercentage)
Deprecated.
When maximum size is reached, the specified percentage of the map will be evicted.
|
MapConfig |
setEvictionPolicy(EvictionPolicy evictionPolicy)
Deprecated.
Sets the
EvictionPolicy . |
MapConfig |
setHotRestartConfig(HotRestartConfig hotRestartConfig)
Deprecated.
Sets the
HotRestartConfig for this MapConfig |
MapConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Deprecated.
Binary type that will be used for storing records.
|
MapConfig |
setMapAttributeConfigs(List<MapAttributeConfig> mapAttributeConfigs)
Deprecated.
|
MapConfig |
setMapEvictionPolicy(MapEvictionPolicy mapEvictionPolicy)
Deprecated.
Sets custom eviction policy implementation for this map.
|
MapConfig |
setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs)
Deprecated.
|
MapConfig |
setMapStoreConfig(MapStoreConfig mapStoreConfig)
Deprecated.
Sets the map store configuration
|
MapConfig |
setMaxIdleSeconds(int maxIdleSeconds)
Deprecated.
Maximum number of seconds for each entry to stay idle in the map.
|
MapConfig |
setMaxSizeConfig(MaxSizeConfig maxSizeConfig)
Deprecated.
|
MapConfig |
setMergePolicy(String mergePolicy)
Deprecated.
Sets the merge policy.
|
MapConfig |
setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Deprecated.
Sets the
MergePolicyConfig for this map. |
MapConfig |
setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
Deprecated.
Sets the minimum time in milliseconds which should pass before asking if a partition of this map is evictable or not.
|
MapConfig |
setName(String name)
Deprecated.
Sets the name of the
IMap |
MapConfig |
setNearCacheConfig(NearCacheConfig nearCacheConfig)
Deprecated.
Sets the Near Cache configuration
|
MapConfig |
setOptimizeQueries(boolean optimizeQueries)
Deprecated.
Enable de-serialized value caching when evaluating predicates.
|
MapConfig |
setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
Deprecated.
|
MapConfig |
setPartitionLostListenerConfigs(List<MapPartitionLostListenerConfig> listenerConfigs)
Deprecated.
|
void |
setQueryCacheConfigs(List<QueryCacheConfig> queryCacheConfigs)
Deprecated.
Sets
QueryCacheConfig instances to this MapConfig . |
MapConfig |
setQuorumName(String quorumName)
Deprecated.
|
MapConfig |
setReadBackupData(boolean readBackupData)
Deprecated.
Sets read-backup-data (reading local backup entries) for this map.
|
MapConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Deprecated.
Sets statistics to enabled or disabled for this map.
|
MapConfig |
setTimeToLiveSeconds(int timeToLiveSeconds)
Deprecated.
The maximum number of seconds for each entry to stay in the map.
|
MapConfig |
setWanReplicationRef(WanReplicationRef wanReplicationRef)
Deprecated.
Sets the WAN target replication reference.
|
addMapAttributeConfig, addMapPartitionLostListenerConfig, addQueryCacheConfig, equals, getAsReadOnly, getAsyncBackupCount, getBackupCount, getCacheDeserializedValues, getEvictionPercentage, getEvictionPolicy, getFactoryId, getHotRestartConfig, getId, getInMemoryFormat, getMapAttributeConfigs, getMapEvictionPolicy, getMaxIdleSeconds, getMergePolicy, getMergePolicyConfig, getMetadataPolicy, getMinEvictionCheckMillis, getName, getProvidedMergeTypes, getQuorumName, getTimeToLiveSeconds, getTotalBackupCount, hashCode, isNearCacheEnabled, isOptimizeQueries, isReadBackupData, isStatisticsEnabled, readData, setMetadataPolicy, toString, writeData
public MaxSizeConfig getMaxSizeConfig()
getMaxSizeConfig
in class MapConfig
public WanReplicationRef getWanReplicationRef()
MapConfig
getWanReplicationRef
in class MapConfig
public List<EntryListenerConfig> getEntryListenerConfigs()
getEntryListenerConfigs
in class MapConfig
public List<MapPartitionLostListenerConfig> getPartitionLostListenerConfigs()
getPartitionLostListenerConfigs
in class MapConfig
public List<MapIndexConfig> getMapIndexConfigs()
getMapIndexConfigs
in class MapConfig
public PartitioningStrategyConfig getPartitioningStrategyConfig()
getPartitioningStrategyConfig
in class MapConfig
public MapStoreConfig getMapStoreConfig()
MapConfig
getMapStoreConfig
in class MapConfig
public NearCacheConfig getNearCacheConfig()
MapConfig
getNearCacheConfig
in class MapConfig
public List<QueryCacheConfig> getQueryCacheConfigs()
MapConfig
QueryCacheConfig
instances defined on this MapConfig
.getQueryCacheConfigs
in class MapConfig
QueryCacheConfig
instances defined on this MapConfig
public MapConfig setHotRestartConfig(HotRestartConfig hotRestartConfig)
MapConfig
HotRestartConfig
for this MapConfig
setHotRestartConfig
in class MapConfig
hotRestartConfig
- hot restart configMapConfig
instancepublic MapConfig setName(String name)
MapConfig
IMap
setName
in interface NamedConfig
setName
in class MapConfig
name
- the name to set for this IMap
public MapConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
MapConfig
setInMemoryFormat
in class MapConfig
inMemoryFormat
- the record type to set for this IMap
public MapConfig setBackupCount(int backupCount)
MapConfig
setBackupCount
in class MapConfig
backupCount
- the number of synchronous backups to set for this IMap
MapConfig.setAsyncBackupCount(int)
public MapConfig setAsyncBackupCount(int asyncBackupCount)
MapConfig
setAsyncBackupCount
in class MapConfig
asyncBackupCount
- the number of asynchronous synchronous backups to setMapConfig.setBackupCount(int)
,
MapConfig.getAsyncBackupCount()
public MapConfig setEvictionPercentage(int evictionPercentage)
MapConfig
Beware that eviction mechanism is different for NATIVE in-memory format (It uses a probabilistic algorithm based on sampling. Please see documentation for further details) and this parameter has no effect.
setEvictionPercentage
in class MapConfig
evictionPercentage
- the evictionPercentage to set: the specified percentage of the map to be evictedpublic MapConfig setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
MapConfig
Default value is 100L milliseconds.
Beware that eviction mechanism is different for NATIVE in-memory format (It uses a probabilistic algorithm based on sampling. Please see documentation for further details) and this parameter has no effect.
setMinEvictionCheckMillis
in class MapConfig
checkIfEvictableAfterMillis
- time in milliseconds that should pass before asking for the next evictionpublic MapConfig setTimeToLiveSeconds(int timeToLiveSeconds)
MapConfig
setTimeToLiveSeconds
in class MapConfig
timeToLiveSeconds
- the timeToLiveSeconds to setpublic MapConfig setMaxIdleSeconds(int maxIdleSeconds)
MapConfig
maxIdleSeconds
will get automatically evicted from the map.
Entry is touched if get()
, getAll()
, put()
or containsKey()
is called.
Any integer between 0
and Integer.MAX_VALUE
.
0
means infinite. Default is 0
. The time precision is limited by 1 second. The MaxIdle that
less than 1 second can lead to unexpected behaviour.setMaxIdleSeconds
in class MapConfig
maxIdleSeconds
- the maxIdleSeconds (the maximum number of seconds for each entry to stay idle in the map) to setpublic MapConfig setMaxSizeConfig(MaxSizeConfig maxSizeConfig)
setMaxSizeConfig
in class MapConfig
public MapConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
MapConfig
EvictionPolicy
. Default value is EvictionPolicy.NONE
.setEvictionPolicy
in class MapConfig
evictionPolicy
- the evictionPolicy to setpublic MapConfig setMapEvictionPolicy(MapEvictionPolicy mapEvictionPolicy)
MapConfig
Internal eviction algorithm finds most appropriate entry to evict from this map by using supplied policy.
setMapEvictionPolicy
in class MapConfig
mapEvictionPolicy
- custom eviction policy implementationpublic MapConfig setMapStoreConfig(MapStoreConfig mapStoreConfig)
MapConfig
setMapStoreConfig
in class MapConfig
mapStoreConfig
- the mapStoreConfig (map store configuration) to setpublic MapConfig setNearCacheConfig(NearCacheConfig nearCacheConfig)
MapConfig
setNearCacheConfig
in class MapConfig
nearCacheConfig
- the Near Cache configurationpublic MapConfig setMergePolicy(String mergePolicy)
MapConfig
Accepts a classname of SplitBrainMergePolicy
or the deprecated MapMergePolicy
.
setMergePolicy
in class MapConfig
mergePolicy
- the merge policy classname to setpublic MapConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
MapConfig
MergePolicyConfig
for this map.setMergePolicyConfig
in class MapConfig
public MapConfig setStatisticsEnabled(boolean statisticsEnabled)
MapConfig
setStatisticsEnabled
in class MapConfig
statisticsEnabled
- true
to enable map statistics, false
to disablepublic MapConfig setReadBackupData(boolean readBackupData)
MapConfig
setReadBackupData
in class MapConfig
readBackupData
- true
to enable read-backup-data, false
to disablepublic MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
MapConfig
setWanReplicationRef
in class MapConfig
wanReplicationRef
- the WAN target replication referencepublic MapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
addEntryListenerConfig
in class MapConfig
public MapConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
setEntryListenerConfigs
in class MapConfig
public MapConfig addMapIndexConfig(MapIndexConfig mapIndexConfig)
addMapIndexConfig
in class MapConfig
public MapConfig setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs)
setMapIndexConfigs
in class MapConfig
public MapConfig setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
setPartitioningStrategyConfig
in class MapConfig
public MapConfig setOptimizeQueries(boolean optimizeQueries)
MapConfig
InMemoryFormat
is InMemoryFormat.OBJECT
or when Portable
serialization is used.setOptimizeQueries
in class MapConfig
optimizeQueries
- true
if queries should be optimized, false
otherwiseMapConfig
instanceCacheDeserializedValues
public MapConfig setPartitionLostListenerConfigs(List<MapPartitionLostListenerConfig> listenerConfigs)
setPartitionLostListenerConfigs
in class MapConfig
public MapConfig setMapAttributeConfigs(List<MapAttributeConfig> mapAttributeConfigs)
setMapAttributeConfigs
in class MapConfig
public void setQueryCacheConfigs(List<QueryCacheConfig> queryCacheConfigs)
MapConfig
QueryCacheConfig
instances to this MapConfig
.setQueryCacheConfigs
in class MapConfig
public MapConfig setCacheDeserializedValues(CacheDeserializedValues cacheDeserializedValues)
MapConfig
CacheDeserializedValues.INDEX_ONLY
setCacheDeserializedValues
in class MapConfig
MapConfig
instanceCacheDeserializedValues
public MapConfig setQuorumName(String quorumName)
setQuorumName
in class MapConfig
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.