|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.MapConfig
public class MapConfig
Contains the configuration for an IMap
.
Field Summary | |
---|---|
static int |
DEFAULT_BACKUP_COUNT
The number of default backup counter |
static int |
DEFAULT_EVICTION_PERCENTAGE
The number of default eviction percentage |
static 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 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 Summary | |
---|---|
MapConfig()
|
|
MapConfig(MapConfig config)
|
|
MapConfig(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 EvictionPolicy DEFAULT_EVICTION_POLICY
public static final String DEFAULT_MAP_MERGE_POLICY
public static final InMemoryFormat DEFAULT_IN_MEMORY_FORMAT
Constructor Detail |
---|
public MapConfig(String name)
public MapConfig()
public MapConfig(MapConfig config)
Method Detail |
---|
public MapConfigReadOnly getAsReadOnly()
public String getName()
public MapConfig setName(String name)
name
- the name to setpublic InMemoryFormat getInMemoryFormat()
public MapConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
inMemoryFormat
- the record type to set
IllegalArgumentException
- 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 set
IllegalArgumentException
- 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 EvictionPolicy getEvictionPolicy()
public MapConfig setEvictionPolicy(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 MapConfig setMergePolicy(String mergePolicy)
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)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |