|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.config.MapConfig
public class MapConfig
Field Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
MapConfig()
|
|
MapConfig(MapConfig config)
|
|
MapConfig(String name)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getBackupCount()
|
int |
getEvictionDelaySeconds()
|
int |
getEvictionPercentage()
|
String |
getEvictionPolicy()
|
MapStoreConfig |
getMapStoreConfig()
Returns the map store configuration |
int |
getMaxIdleSeconds()
|
int |
getMaxSize()
Deprecated. use MapSizeConfig.getSize |
MaxSizeConfig |
getMaxSizeConfig()
|
String |
getMergePolicy()
|
String |
getName()
|
NearCacheConfig |
getNearCacheConfig()
|
int |
getTimeToLiveSeconds()
|
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 |
setBackupCount(int backupCount)
Number of backups. |
MapConfig |
setCacheValue(boolean cacheValue)
Sets if entry values should be cached |
MapConfig |
setEvictionDelaySeconds(int evictionDelaySeconds)
|
MapConfig |
setEvictionPercentage(int evictionPercentage)
When max. |
MapConfig |
setEvictionPolicy(String evictionPolicy)
|
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 MapSizeConfig.setSize |
MapConfig |
setMergePolicy(String mergePolicyName)
|
MapConfig |
setName(String name)
|
MapConfig |
setNearCacheConfig(NearCacheConfig nearCacheConfig)
|
MapConfig |
setReadBackupData(boolean readBackupData)
|
MapConfig |
setTimeToLiveSeconds(int timeToLiveSeconds)
Maximum number of seconds for each entry to stay in the map. |
void |
setValueIndexed(boolean valueIndexed)
Sets if the value of the map entries should be indexed for faster containsValue(obj) operations. |
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 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 void setValueIndexed(boolean valueIndexed)
valueIndexed
- public boolean isCacheValue()
public MapConfig setCacheValue(boolean cacheValue)
cacheValue
-
public int getBackupCount()
public MapConfig setBackupCount(int backupCount)
backupCount
- the backupCount to setpublic 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 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 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 |