public class MapConfig extends Object
IMap
.Modifier and Type | Class and Description |
---|---|
static class |
MapConfig.EvictionPolicy
Eviction Policy enum
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BACKUP_COUNT
The number of default backup counter
|
static int |
DEFAULT_EVICTION_PERCENTAGE
The number of default eviction percentage
|
static MapConfig.EvictionPolicy |
DEFAULT_EVICTION_POLICY
Default policy for eviction
|
static InMemoryFormat |
DEFAULT_IN_MEMORY_FORMAT
Default In-Memory format is binary
|
static String |
DEFAULT_MAP_MERGE_POLICY
Default policy for merging
|
static int |
DEFAULT_MAX_IDLE_SECONDS
The number of default time to wait eviction
|
static int |
DEFAULT_MAX_SIZE
Maximum size
|
static long |
DEFAULT_MIN_EVICTION_CHECK_MILLIS
Minimum time in milliseconds which should pass before asking
if a partition of this map is evictable or not.
|
static int |
DEFAULT_TTL_SECONDS
The number of default Time to Live seconds
|
static int |
MAX_BACKUP_COUNT
The number of maximum backup counter
|
static int |
MAX_EVICTION_PERCENTAGE
The number of maximum eviction percentage
|
static int |
MIN_BACKUP_COUNT
The number of minimum backup counter
|
static int |
MIN_EVICTION_PERCENTAGE
The number of minimum eviction percentage
|
Constructor and Description |
---|
MapConfig() |
MapConfig(MapConfig config) |
MapConfig(String name) |
public static final int MIN_BACKUP_COUNT
public static final int DEFAULT_BACKUP_COUNT
public static final int MAX_BACKUP_COUNT
public static final int MIN_EVICTION_PERCENTAGE
public static final int DEFAULT_EVICTION_PERCENTAGE
public static final int MAX_EVICTION_PERCENTAGE
public static final long DEFAULT_MIN_EVICTION_CHECK_MILLIS
public static final int DEFAULT_TTL_SECONDS
public static final int DEFAULT_MAX_IDLE_SECONDS
public static final int DEFAULT_MAX_SIZE
public static final MapConfig.EvictionPolicy DEFAULT_EVICTION_POLICY
public static final String DEFAULT_MAP_MERGE_POLICY
public static final InMemoryFormat DEFAULT_IN_MEMORY_FORMAT
public MapConfig(String name)
public MapConfig()
public MapConfig(MapConfig config)
public MapConfigReadOnly getAsReadOnly()
public String getName()
public InMemoryFormat getInMemoryFormat()
public MapConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
inMemoryFormat
- the record type to setIllegalArgumentException
- if inMemoryFormat is null.public int getBackupCount()
getAsyncBackupCount()
public MapConfig setBackupCount(int backupCount)
backupCount
- the backupCount to setsetAsyncBackupCount(int)
public int getAsyncBackupCount()
setBackupCount(int)
public MapConfig setAsyncBackupCount(int asyncBackupCount)
asyncBackupCount
- the asyncBackupCount to setsetBackupCount(int)
public int getTotalBackupCount()
public int getEvictionPercentage()
public MapConfig setEvictionPercentage(int evictionPercentage)
evictionPercentage
- the evictionPercentage to setIllegalArgumentException
- if evictionPercentage is not in the 0-100 range.public long getMinEvictionCheckMillis()
public MapConfig setMinEvictionCheckMillis(long minEvictionCheckMillis)
minEvictionCheckMillis
- time in millis.public int getTimeToLiveSeconds()
public MapConfig setTimeToLiveSeconds(int timeToLiveSeconds)
timeToLiveSeconds
- the timeToLiveSeconds to setpublic int getMaxIdleSeconds()
public MapConfig setMaxIdleSeconds(int maxIdleSeconds)
maxIdleSeconds
- the maxIdleSeconds to setpublic MaxSizeConfig getMaxSizeConfig()
public MapConfig setMaxSizeConfig(MaxSizeConfig maxSizeConfig)
public MapConfig.EvictionPolicy getEvictionPolicy()
public MapConfig setEvictionPolicy(MapConfig.EvictionPolicy evictionPolicy)
evictionPolicy
- the evictionPolicy to setpublic MapStoreConfig getMapStoreConfig()
public MapConfig setMapStoreConfig(MapStoreConfig mapStoreConfig)
mapStoreConfig
- the mapStoreConfig to setpublic NearCacheConfig getNearCacheConfig()
public MapConfig setNearCacheConfig(NearCacheConfig nearCacheConfig)
public String getMergePolicy()
public boolean isStatisticsEnabled()
public MapConfig setStatisticsEnabled(boolean statisticsEnabled)
public boolean isReadBackupData()
public MapConfig setReadBackupData(boolean readBackupData)
public WanReplicationRef getWanReplicationRef()
public MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
public MapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
public List<EntryListenerConfig> getEntryListenerConfigs()
public MapConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
public MapConfig addMapIndexConfig(MapIndexConfig mapIndexConfig)
public List<MapIndexConfig> getMapIndexConfigs()
public MapConfig setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs)
public PartitioningStrategyConfig getPartitioningStrategyConfig()
public MapConfig setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
public boolean isNearCacheEnabled()
public boolean isOptimizeQueries()
public MapConfig setOptimizeQueries(boolean optimizeQueries)
public boolean isCompatible(MapConfig other)
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.