|
||||||||||
| 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 java.lang.String |
ATOMIC_LONG_MAP_NAME
|
static java.lang.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 java.lang.String |
DEFAULT_EVICTION_POLICY
|
static int |
DEFAULT_MAX_IDLE_SECONDS
|
static int |
DEFAULT_MAX_SIZE
|
static java.lang.String |
DEFAULT_MERGE_POLICY
|
static int |
DEFAULT_TTL_SECONDS
|
static int |
MAX_EVICTION_PERCENTAGE
|
static int |
MIN_BACKUP_COUNT
|
static int |
MIN_EVICTION_PERCENTAGE
|
static java.lang.String |
SEMAPHORE_MAP_NAME
|
| Constructor Summary | |
|---|---|
MapConfig()
|
|
MapConfig(MapConfig config)
|
|
MapConfig(java.lang.String name)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getBackupCount()
|
int |
getEvictionDelaySeconds()
Deprecated. |
int |
getEvictionPercentage()
|
java.lang.String |
getEvictionPolicy()
|
MapStoreConfig |
getMapStoreConfig()
Returns the map store configuration |
int |
getMaxIdleSeconds()
|
int |
getMaxSize()
Deprecated. use MaxSizeConfig.getSize |
MaxSizeConfig |
getMaxSizeConfig()
|
java.lang.String |
getMergePolicy()
|
java.lang.String |
getName()
|
NearCacheConfig |
getNearCacheConfig()
|
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(java.io.DataInput in)
|
MapConfig |
setBackupCount(int backupCount)
Number of backups. |
MapConfig |
setCacheValue(boolean cacheValue)
Sets if entry values should be cached |
MapConfig |
setEvictionDelaySeconds(int evictionDelaySeconds)
Deprecated. |
MapConfig |
setEvictionPercentage(int evictionPercentage)
When max. |
MapConfig |
setEvictionPolicy(java.lang.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 MaxSizeConfig.setSize |
MapConfig |
setMergePolicy(java.lang.String mergePolicyName)
|
MapConfig |
setName(java.lang.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. |
MapConfig |
setWanReplicationRef(WanReplicationRef wanReplicationRef)
|
java.lang.String |
toString()
|
void |
writeData(java.io.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 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 java.lang.String ATOMIC_LONG_MAP_NAME
public static final java.lang.String COUNT_DOWN_LATCH_MAP_NAME
public static final java.lang.String SEMAPHORE_MAP_NAME
public static final java.lang.String DEFAULT_EVICTION_POLICY
public static final java.lang.String DEFAULT_MERGE_POLICY
public static final boolean DEFAULT_CACHE_VALUE
| Constructor Detail |
|---|
public MapConfig(java.lang.String name)
public MapConfig()
public MapConfig(MapConfig config)
| Method Detail |
|---|
public java.lang.String getName()
public MapConfig setName(java.lang.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
java.lang.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 java.lang.String getEvictionPolicy()
public MapConfig setEvictionPolicy(java.lang.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 java.lang.String getMergePolicy()
public MapConfig setMergePolicy(java.lang.String mergePolicyName)
public boolean isReadBackupData()
public MapConfig setReadBackupData(boolean readBackupData)
public WanReplicationRef getWanReplicationRef()
public MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
public boolean isCompatible(MapConfig other)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public void readData(java.io.DataInput in)
throws java.io.IOException
readData in interface DataSerializablejava.io.IOException
public void writeData(java.io.DataOutput out)
throws java.io.IOException
writeData in interface DataSerializablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||