com.hazelcast.config
DEFAULT_BACKUP_COUNT, 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 |
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) |
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.
|
addMapPartitionLostListenerConfig, addQueryCacheConfig, equals, getAsReadOnly, getAsyncBackupCount, getBackupCount, getEvictionPercentage, getEvictionPolicy, getInMemoryFormat, getMaxIdleSeconds, getMergePolicy, getMinEvictionCheckMillis, getName, getQuorumName, getTimeToLiveSeconds, getTotalBackupCount, hashCode, isCompatible, isNearCacheEnabled, isOptimizeQueries, isReadBackupData, isStatisticsEnabled, setPartitionLostListenerConfigs, setQueryCacheConfigs, setQuorumName, toString
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 setName(String name)
MapConfig
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
setEvictionPercentage
in class MapConfig
evictionPercentage
- the evictionPercentage to set: the specified percentage of the map to be evictedpublic MapConfig setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
MapConfig
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
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
setEvictionPolicy
in class MapConfig
evictionPolicy
- the evictionPolicy to setpublic 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
MapMergePolicy
setMergePolicy
in class MapConfig
mergePolicy
- the map merge policy to setpublic MapConfig setStatisticsEnabled(boolean statisticsEnabled)
MapConfig
setStatisticsEnabled
in class MapConfig
statisticsEnabled
- True to enable map statistics, false to disable.public MapConfig setReadBackupData(boolean readBackupData)
MapConfig
setReadBackupData
in class MapConfig
readBackupData
- True to enable read-backup-data, false to disable.public MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
MapConfig
setWanReplicationRef
in class MapConfig
wanReplicationRef
- the Wan target replication reference.public 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)
setOptimizeQueries
in class MapConfig
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.