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_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) |
MapConfig |
addMapIndexConfig(MapIndexConfig mapIndexConfig) |
List<EntryListenerConfig> |
getEntryListenerConfigs() |
List<MapIndexConfig> |
getMapIndexConfigs() |
MapStoreConfig |
getMapStoreConfig()
Returns the map store configuration
|
MaxSizeConfig |
getMaxSizeConfig() |
NearCacheConfig |
getNearCacheConfig()
Returns the near cache configuration
|
PartitioningStrategyConfig |
getPartitioningStrategyConfig() |
List<MapPartitionLostListenerConfig> |
getPartitionLostListenerConfigs() |
List<QueryCacheConfig> |
getQueryCacheConfigs()
Returns all
QueryCacheConfig instances defined on this MapConfig |
WanReplicationRef |
getWanReplicationRef()
Gets the Wan target replication reference.
|
MapConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups.
|
MapConfig |
setBackupCount(int backupCount)
Number of synchronous backups.
|
MapConfig |
setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs) |
MapConfig |
setEvictionPercentage(int evictionPercentage)
When maximum size is reached, the specified percentage of the map will be evicted.
|
MapConfig |
setEvictionPolicy(EvictionPolicy evictionPolicy)
Sets the evictionPolicy
|
MapConfig |
setHotRestartConfig(HotRestartConfig hotRestartConfig)
Sets the
HotRestartConfig for this MapConfig |
MapConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Binary type that will be used for storing records.
|
MapConfig |
setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs) |
MapConfig |
setMapStoreConfig(MapStoreConfig mapStoreConfig)
Sets the map store configuration
|
MapConfig |
setMaxIdleSeconds(int maxIdleSeconds)
Maximum number of seconds for each entry to stay idle in the map.
|
MapConfig |
setMaxSizeConfig(MaxSizeConfig maxSizeConfig) |
MapConfig |
setMergePolicy(String mergePolicy)
Sets the map merge policy
MapMergePolicy |
MapConfig |
setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
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)
Sets the name of the
IMap |
MapConfig |
setNearCacheConfig(NearCacheConfig nearCacheConfig)
Sets the near cache configuration
|
MapConfig |
setOptimizeQueries(boolean optimizeQueries)
Enable de-serialized value caching when evaluating predicates.
|
MapConfig |
setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig) |
MapConfig |
setReadBackupData(boolean readBackupData)
Sets read-backup-data (reading local backup entires) for this map.
|
MapConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Sets statistics to enabled or disabled for this map.
|
MapConfig |
setTimeToLiveSeconds(int timeToLiveSeconds)
The maximum number of seconds for each entry to stay in the map.
|
MapConfig |
setWanReplicationRef(WanReplicationRef wanReplicationRef)
Sets the Wan target replication reference.
|
addMapAttributeConfig, addMapPartitionLostListenerConfig, addQueryCacheConfig, equals, getAsReadOnly, getAsyncBackupCount, getBackupCount, getCacheDeserializedValues, getEvictionPercentage, getEvictionPolicy, getHotRestartConfig, getInMemoryFormat, getMapAttributeConfigs, getMaxIdleSeconds, getMergePolicy, getMinEvictionCheckMillis, getName, getQuorumName, getTimeToLiveSeconds, getTotalBackupCount, hashCode, isCompatible, isNearCacheEnabled, isOptimizeQueries, isReadBackupData, isStatisticsEnabled, setCacheDeserializedValues, setMapAttributeConfigs, setPartitionLostListenerConfigs, setQueryCacheConfigs, setQuorumName, toStringpublic 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 MapConfiggetQueryCacheConfigs 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)
MapConfigIMappublic 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)
MapConfigsetEvictionPercentage in class MapConfigevictionPercentage - the evictionPercentage to set: the specified percentage of the map to be evictedpublic MapConfig setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
MapConfigsetMinEvictionCheckMillis 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)
MapConfigsetMaxIdleSeconds 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)
MapConfigsetEvictionPolicy in class MapConfigevictionPolicy - the evictionPolicy to setpublic 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)
MapConfigMapMergePolicysetMergePolicy in class MapConfigmergePolicy - the map merge policy to setpublic MapConfig setStatisticsEnabled(boolean statisticsEnabled)
MapConfigsetStatisticsEnabled in class MapConfigstatisticsEnabled - True to enable map statistics, false to disable.public MapConfig setReadBackupData(boolean readBackupData)
MapConfigsetReadBackupData in class MapConfigreadBackupData - True to enable read-backup-data, false to disable.public MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
MapConfigsetWanReplicationRef in class MapConfigwanReplicationRef - the Wan target replication reference.public 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 MapConfigMapConfig instance.CacheDeserializedValues}Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.