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, writeDatapublic MaxSizeConfig getMaxSizeConfig()
getMaxSizeConfig in class MapConfigpublic WanReplicationRef getWanReplicationRef()
MapConfiggetWanReplicationRef in class MapConfigpublic List<EntryListenerConfig> getEntryListenerConfigs()
getEntryListenerConfigs in class MapConfigpublic List<MapPartitionLostListenerConfig> getPartitionLostListenerConfigs()
getPartitionLostListenerConfigs in class MapConfigpublic List<MapIndexConfig> getMapIndexConfigs()
getMapIndexConfigs in class MapConfigpublic PartitioningStrategyConfig getPartitioningStrategyConfig()
getPartitioningStrategyConfig in class MapConfigpublic MapStoreConfig getMapStoreConfig()
MapConfiggetMapStoreConfig in class MapConfigpublic NearCacheConfig getNearCacheConfig()
MapConfiggetNearCacheConfig in class MapConfigpublic List<QueryCacheConfig> getQueryCacheConfigs()
MapConfigQueryCacheConfig instances defined on this MapConfig.getQueryCacheConfigs in class MapConfigQueryCacheConfig instances defined on this MapConfigpublic MapConfig setHotRestartConfig(HotRestartConfig hotRestartConfig)
MapConfigHotRestartConfig for this MapConfigsetHotRestartConfig in class MapConfighotRestartConfig - hot restart configMapConfig instancepublic MapConfig setName(String name)
MapConfigIMapsetName in interface NamedConfigsetName in class MapConfigname - the name to set for this IMappublic MapConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
MapConfigsetInMemoryFormat in class MapConfiginMemoryFormat - the record type to set for this IMappublic MapConfig setBackupCount(int backupCount)
MapConfigsetBackupCount in class MapConfigbackupCount - the number of synchronous backups to set for this IMapMapConfig.setAsyncBackupCount(int)public MapConfig setAsyncBackupCount(int asyncBackupCount)
MapConfigsetAsyncBackupCount in class MapConfigasyncBackupCount - the number of asynchronous synchronous backups to setMapConfig.setBackupCount(int),
MapConfig.getAsyncBackupCount()public MapConfig setEvictionPercentage(int evictionPercentage)
MapConfigBeware 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 MapConfigevictionPercentage - the evictionPercentage to set: the specified percentage of the map to be evictedpublic MapConfig setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
MapConfigDefault 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 MapConfigcheckIfEvictableAfterMillis - time in milliseconds that should pass before asking for the next evictionpublic MapConfig setTimeToLiveSeconds(int timeToLiveSeconds)
MapConfigsetTimeToLiveSeconds in class MapConfigtimeToLiveSeconds - the timeToLiveSeconds to setpublic MapConfig setMaxIdleSeconds(int maxIdleSeconds)
MapConfigmaxIdleSeconds 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 MapConfigmaxIdleSeconds - 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 MapConfigpublic MapConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
MapConfigEvictionPolicy. Default value is EvictionPolicy.NONE.setEvictionPolicy in class MapConfigevictionPolicy - the evictionPolicy to setpublic MapConfig setMapEvictionPolicy(MapEvictionPolicy mapEvictionPolicy)
MapConfigInternal eviction algorithm finds most appropriate entry to evict from this map by using supplied policy.
setMapEvictionPolicy in class MapConfigmapEvictionPolicy - custom eviction policy implementationpublic MapConfig setMapStoreConfig(MapStoreConfig mapStoreConfig)
MapConfigsetMapStoreConfig in class MapConfigmapStoreConfig - the mapStoreConfig (map store configuration) to setpublic MapConfig setNearCacheConfig(NearCacheConfig nearCacheConfig)
MapConfigsetNearCacheConfig in class MapConfignearCacheConfig - the Near Cache configurationpublic MapConfig setMergePolicy(String mergePolicy)
MapConfig
Accepts a classname of SplitBrainMergePolicy
or the deprecated MapMergePolicy.
setMergePolicy in class MapConfigmergePolicy - the merge policy classname to setpublic MapConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
MapConfigMergePolicyConfig for this map.setMergePolicyConfig in class MapConfigpublic MapConfig setStatisticsEnabled(boolean statisticsEnabled)
MapConfigsetStatisticsEnabled in class MapConfigstatisticsEnabled - true to enable map statistics, false to disablepublic MapConfig setReadBackupData(boolean readBackupData)
MapConfigsetReadBackupData in class MapConfigreadBackupData - true to enable read-backup-data, false to disablepublic MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
MapConfigsetWanReplicationRef in class MapConfigwanReplicationRef - the WAN target replication referencepublic MapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
addEntryListenerConfig in class MapConfigpublic MapConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
setEntryListenerConfigs in class MapConfigpublic MapConfig addMapIndexConfig(MapIndexConfig mapIndexConfig)
addMapIndexConfig in class MapConfigpublic MapConfig setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs)
setMapIndexConfigs in class MapConfigpublic MapConfig setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
setPartitioningStrategyConfig in class MapConfigpublic MapConfig setOptimizeQueries(boolean optimizeQueries)
MapConfigInMemoryFormat
is InMemoryFormat.OBJECT or when Portable serialization is used.setOptimizeQueries in class MapConfigoptimizeQueries - true if queries should be optimized, false otherwiseMapConfig instanceCacheDeserializedValuespublic MapConfig setPartitionLostListenerConfigs(List<MapPartitionLostListenerConfig> listenerConfigs)
setPartitionLostListenerConfigs in class MapConfigpublic MapConfig setMapAttributeConfigs(List<MapAttributeConfig> mapAttributeConfigs)
setMapAttributeConfigs in class MapConfigpublic void setQueryCacheConfigs(List<QueryCacheConfig> queryCacheConfigs)
MapConfigQueryCacheConfig instances to this MapConfig.setQueryCacheConfigs in class MapConfigpublic MapConfig setCacheDeserializedValues(CacheDeserializedValues cacheDeserializedValues)
MapConfigCacheDeserializedValues.INDEX_ONLYsetCacheDeserializedValues in class MapConfigMapConfig instanceCacheDeserializedValuespublic MapConfig setQuorumName(String quorumName)
setQuorumName in class MapConfigCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.