|
||||||||||
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
Nested Class Summary | |
---|---|
static class |
MapConfig.StorageType
|
Field Summary | |
---|---|
static String |
ATOMIC_LONG_MAP_NAME
|
static String |
COUNT_DOWN_LATCH_MAP_NAME
|
static int |
DEFAULT_BACKUP_COUNT
|
static boolean |
DEFAULT_CACHE_VALUE
|
static int |
DEFAULT_EVICTION_DELAY_SECONDS
|
static int |
DEFAULT_EVICTION_PERCENTAGE
|
static String |
DEFAULT_EVICTION_POLICY
|
static int |
DEFAULT_MAX_IDLE_SECONDS
|
static int |
DEFAULT_MAX_SIZE
|
static String |
DEFAULT_MERGE_POLICY
|
static int |
DEFAULT_TTL_SECONDS
|
static int |
MAX_BACKUP_COUNT
|
static int |
MAX_EVICTION_PERCENTAGE
|
static int |
MIN_BACKUP_COUNT
|
static int |
MIN_EVICTION_PERCENTAGE
|
static String |
SEMAPHORE_MAP_NAME
|
Constructor Summary | |
---|---|
MapConfig()
|
|
MapConfig(MapConfig config)
|
|
MapConfig(String name)
|
Method Summary | |
---|---|
MapConfig |
addEntryListenerConfig(EntryListenerConfig listenerConfig)
|
MapConfig |
addMapIndexConfig(MapIndexConfig mapIndexConfig)
|
boolean |
equals(Object obj)
|
int |
getAsyncBackupCount()
|
int |
getBackupCount()
|
List<EntryListenerConfig> |
getEntryListenerConfigs()
|
int |
getEvictionDelaySeconds()
Deprecated. |
int |
getEvictionPercentage()
|
String |
getEvictionPolicy()
|
List<MapIndexConfig> |
getMapIndexConfigs()
|
MapStoreConfig |
getMapStoreConfig()
Returns the map store configuration |
int |
getMaxIdleSeconds()
|
int |
getMaxSize()
Deprecated. use MaxSizeConfig.getSize |
MaxSizeConfig |
getMaxSizeConfig()
|
String |
getMergePolicy()
|
String |
getName()
|
NearCacheConfig |
getNearCacheConfig()
|
MapConfig.StorageType |
getStorageType()
|
int |
getTimeToLiveSeconds()
|
WanReplicationRef |
getWanReplicationRef()
|
int |
hashCode()
|
boolean |
isCacheValue()
Returns if the entry values are cached |
boolean |
isCompatible(MapConfig other)
|
boolean |
isReadBackupData()
|
boolean |
isValueIndexed()
Returns if the value of the mapEntry should be indexed for faster containsValue(obj) operations. |
void |
readData(DataInput in)
|
MapConfig |
setAsyncBackupCount(int asyncBackupCount)
Number of asynchronous backups. |
MapConfig |
setBackupCount(int backupCount)
Number of synchronous backups. |
MapConfig |
setBackupCounts(int backupCount,
int asyncBackupCount)
Number of sync and async backups. |
MapConfig |
setCacheValue(boolean cacheValue)
Sets if entry values should be cached |
MapConfig |
setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
|
MapConfig |
setEvictionDelaySeconds(int evictionDelaySeconds)
Deprecated. |
MapConfig |
setEvictionPercentage(int evictionPercentage)
When max. |
MapConfig |
setEvictionPolicy(String evictionPolicy)
|
MapConfig |
setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs)
|
MapConfig |
setMapStoreConfig(MapStoreConfig mapStoreConfig)
Sets the mapStore configuration |
MapConfig |
setMaxIdleSeconds(int maxIdleSeconds)
Maximum number of seconds for each entry to stay idle in the map. |
MapConfig |
setMaxSize(int maxSize)
Deprecated. use MaxSizeConfig.setSize |
MapConfig |
setMaxSizeConfig(MaxSizeConfig maxSizeConfig)
|
MapConfig |
setMergePolicy(String mergePolicyName)
|
MapConfig |
setName(String name)
|
MapConfig |
setNearCacheConfig(NearCacheConfig nearCacheConfig)
|
MapConfig |
setReadBackupData(boolean readBackupData)
|
MapConfig |
setStorageType(MapConfig.StorageType storageType)
|
MapConfig |
setTimeToLiveSeconds(int timeToLiveSeconds)
Maximum number of seconds for each entry to stay in the map. |
MapConfig |
setValueIndexed(boolean valueIndexed)
Sets if the value of the map entries should be indexed for faster containsValue(obj) operations. |
MapConfig |
setWanReplicationRef(WanReplicationRef wanReplicationRef)
|
String |
toString()
|
void |
writeData(DataOutput out)
|
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 int DEFAULT_EVICTION_DELAY_SECONDS
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 String ATOMIC_LONG_MAP_NAME
public static final String COUNT_DOWN_LATCH_MAP_NAME
public static final String SEMAPHORE_MAP_NAME
public static final String DEFAULT_EVICTION_POLICY
public static final String DEFAULT_MERGE_POLICY
public static final boolean DEFAULT_CACHE_VALUE
Constructor Detail |
---|
public MapConfig(String name)
public MapConfig()
public MapConfig(MapConfig config)
Method Detail |
---|
public String getName()
public MapConfig setName(String name)
name
- the name to setpublic boolean isValueIndexed()
public MapConfig setValueIndexed(boolean valueIndexed)
valueIndexed
- public boolean isCacheValue()
public MapConfig setCacheValue(boolean cacheValue)
cacheValue
-
public int getBackupCount()
getAsyncBackupCount()
public MapConfig setBackupCount(int backupCount)
backupCount
- the backupCount to setsetAsyncBackupCount(int)
,
setBackupCounts(int, int)
public int getAsyncBackupCount()
setBackupCount(int)
public MapConfig setAsyncBackupCount(int asyncBackupCount)
asyncBackupCount
- the asyncBackupCount to setsetBackupCount(int)
,
setBackupCounts(int, int)
public MapConfig setBackupCounts(int backupCount, int asyncBackupCount)
backupCount
- the sync backup count to setasyncBackupCount
- the async backup count to setsetBackupCount(int)
,
setAsyncBackupCount(int)
public int getEvictionPercentage()
public MapConfig setEvictionPercentage(int evictionPercentage)
evictionPercentage
- the evictionPercentage to set
IllegalArgumentException
- if evictionPercentage is not in the 0-100 range.public int getEvictionDelaySeconds()
public MapConfig setEvictionDelaySeconds(int evictionDelaySeconds)
evictionDelaySeconds
- the evictionPercentage to setpublic int getTimeToLiveSeconds()
public MapConfig setTimeToLiveSeconds(int timeToLiveSeconds)
timeToLiveSeconds
- the timeToLiveSeconds to setpublic int getMaxIdleSeconds()
public MapConfig setMaxIdleSeconds(int maxIdleSeconds)
maxIdleSeconds
- the maxIdleSeconds to setpublic int getMaxSize()
public MapConfig setMaxSize(int maxSize)
maxSize
- the maxSize to setpublic MaxSizeConfig getMaxSizeConfig()
public MapConfig setMaxSizeConfig(MaxSizeConfig maxSizeConfig)
public String getEvictionPolicy()
public MapConfig setEvictionPolicy(String 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 mergePolicyName)
public boolean isReadBackupData()
public MapConfig setReadBackupData(boolean readBackupData)
public WanReplicationRef getWanReplicationRef()
public MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
public MapConfig.StorageType getStorageType()
public MapConfig setStorageType(MapConfig.StorageType storageType)
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 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
public void readData(DataInput in) throws IOException
readData
in interface DataSerializable
IOException
public void writeData(DataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |