|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.config.MapConfig
com.hazelcast.config.MapConfigReadOnly
public class MapConfigReadOnly
Contains the configuration for an IMap
(read-only).
Field Summary |
---|
Fields inherited from class com.hazelcast.config.MapConfig |
---|
DEFAULT_BACKUP_COUNT, DEFAULT_EVICTION_PERCENTAGE, DEFAULT_EVICTION_POLICY, DEFAULT_IN_MEMORY_FORMAT, DEFAULT_MAP_MERGE_POLICY, DEFAULT_MAX_IDLE_SECONDS, DEFAULT_MIN_EVICTION_CHECK_MILLIS, DEFAULT_TTL_SECONDS, MAX_BACKUP_COUNT, MAX_EVICTION_PERCENTAGE, MIN_BACKUP_COUNT, MIN_EVICTION_PERCENTAGE |
Method Summary | |
---|---|
MapConfig |
addEntryListenerConfig(EntryListenerConfig listenerConfig)
|
MapConfig |
addMapIndexConfig(MapIndexConfig mapIndexConfig)
|
List<EntryListenerConfig> |
getEntryListenerConfigs()
|
List<MapIndexConfig> |
getMapIndexConfigs()
|
MapStoreConfig |
getMapStoreConfig()
Returns the map store configuration |
MaxSizeConfig |
getMaxSizeConfig()
|
NearCacheConfig |
getNearCacheConfig()
|
PartitioningStrategyConfig |
getPartitioningStrategyConfig()
|
List<MapPartitionLostListenerConfig> |
getPartitionLostListenerConfigs()
|
List<QueryCacheConfig> |
getQueryCacheConfigs()
Returns all QueryCacheConfig instances defined on this MapConfig |
WanReplicationRef |
getWanReplicationRef()
|
MapConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups. |
MapConfig |
setBackupCount(int backupCount)
Number of synchronous backups. |
MapConfig |
setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
|
MapConfig |
setEvictionPercentage(int evictionPercentage)
When maximum size is reached, the specified percentage of the map will be evicted. |
MapConfig |
setEvictionPolicy(EvictionPolicy evictionPolicy)
Sets the evictionPolicy |
MapConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Binary type that will be used for storing records. |
MapConfig |
setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs)
|
MapConfig |
setMapStoreConfig(MapStoreConfig mapStoreConfig)
Sets the map store configuration |
MapConfig |
setMaxIdleSeconds(int maxIdleSeconds)
Maximum number of seconds for each entry to stay idle in the map. |
MapConfig |
setMaxSizeConfig(MaxSizeConfig maxSizeConfig)
|
MapConfig |
setMergePolicy(String mergePolicy)
|
MapConfig |
setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
Sets the minimum time in milliseconds which should pass before asking if a partition of this map is evictable or not. |
MapConfig |
setName(String name)
Sets the name of the IMap |
MapConfig |
setNearCacheConfig(NearCacheConfig nearCacheConfig)
|
MapConfig |
setOptimizeQueries(boolean optimizeQueries)
|
MapConfig |
setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
|
MapConfig |
setReadBackupData(boolean readBackupData)
|
MapConfig |
setStatisticsEnabled(boolean statisticsEnabled)
|
MapConfig |
setTimeToLiveSeconds(int timeToLiveSeconds)
The maximum number of seconds for each entry to stay in the map. |
MapConfig |
setWanReplicationRef(WanReplicationRef wanReplicationRef)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public MaxSizeConfig getMaxSizeConfig()
getMaxSizeConfig
in class MapConfig
public WanReplicationRef getWanReplicationRef()
getWanReplicationRef
in class MapConfig
public List<EntryListenerConfig> getEntryListenerConfigs()
getEntryListenerConfigs
in class MapConfig
public List<MapPartitionLostListenerConfig> getPartitionLostListenerConfigs()
getPartitionLostListenerConfigs
in class MapConfig
public List<MapIndexConfig> getMapIndexConfigs()
getMapIndexConfigs
in class MapConfig
public PartitioningStrategyConfig getPartitioningStrategyConfig()
getPartitioningStrategyConfig
in class MapConfig
public MapStoreConfig getMapStoreConfig()
MapConfig
getMapStoreConfig
in class MapConfig
public NearCacheConfig getNearCacheConfig()
getNearCacheConfig
in class MapConfig
public List<QueryCacheConfig> getQueryCacheConfigs()
MapConfig
QueryCacheConfig
instances defined on this MapConfig
getQueryCacheConfigs
in class MapConfig
QueryCacheConfig
instances defined on this MapConfig
public MapConfig setName(String name)
MapConfig
IMap
setName
in class MapConfig
name
- the name to set for this IMap
public MapConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
MapConfig
setInMemoryFormat
in class MapConfig
inMemoryFormat
- the record type to setpublic MapConfig setBackupCount(int backupCount)
MapConfig
setBackupCount
in class MapConfig
backupCount
- the backupCount to set for this IMap
MapConfig.setAsyncBackupCount(int)
public MapConfig setAsyncBackupCount(int asyncBackupCount)
MapConfig
setAsyncBackupCount
in class MapConfig
asyncBackupCount
- the number of asynchronous synchronous backups to set
MapConfig.setBackupCount(int)
,
MapConfig.getAsyncBackupCount()
public MapConfig setEvictionPercentage(int evictionPercentage)
MapConfig
setEvictionPercentage
in class MapConfig
evictionPercentage
- the evictionPercentage to set: the specified percentage of the map to be evictedpublic MapConfig setMinEvictionCheckMillis(long checkIfEvictableAfterMillis)
MapConfig
setMinEvictionCheckMillis
in class MapConfig
checkIfEvictableAfterMillis
- time in milliseconds that should pass before asking for the next evictionpublic MapConfig setTimeToLiveSeconds(int timeToLiveSeconds)
MapConfig
setTimeToLiveSeconds
in class MapConfig
timeToLiveSeconds
- the timeToLiveSeconds to setpublic MapConfig setMaxIdleSeconds(int maxIdleSeconds)
MapConfig
setMaxIdleSeconds
in class MapConfig
maxIdleSeconds
- the maxIdleSeconds (the maximum number of seconds for each entry to stay idle in the map) to setpublic MapConfig setMaxSizeConfig(MaxSizeConfig maxSizeConfig)
setMaxSizeConfig
in class MapConfig
public MapConfig setEvictionPolicy(EvictionPolicy evictionPolicy)
MapConfig
setEvictionPolicy
in class MapConfig
evictionPolicy
- the evictionPolicy to setpublic MapConfig setMapStoreConfig(MapStoreConfig mapStoreConfig)
MapConfig
setMapStoreConfig
in class MapConfig
mapStoreConfig
- the mapStoreConfig (map store configuration) to setpublic MapConfig setNearCacheConfig(NearCacheConfig nearCacheConfig)
setNearCacheConfig
in class MapConfig
public MapConfig setMergePolicy(String mergePolicy)
setMergePolicy
in class MapConfig
public MapConfig setStatisticsEnabled(boolean statisticsEnabled)
setStatisticsEnabled
in class MapConfig
public MapConfig setReadBackupData(boolean readBackupData)
setReadBackupData
in class MapConfig
public MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
setWanReplicationRef
in class MapConfig
public MapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
addEntryListenerConfig
in class MapConfig
public MapConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
setEntryListenerConfigs
in class MapConfig
public MapConfig addMapIndexConfig(MapIndexConfig mapIndexConfig)
addMapIndexConfig
in class MapConfig
public MapConfig setMapIndexConfigs(List<MapIndexConfig> mapIndexConfigs)
setMapIndexConfigs
in class MapConfig
public MapConfig setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
setPartitioningStrategyConfig
in class MapConfig
public MapConfig setOptimizeQueries(boolean optimizeQueries)
setOptimizeQueries
in class MapConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |