com.hazelcast.config
public class MultiMapConfigReadOnly extends MultiMapConfig
MultiMap
.MultiMapConfig.ValueCollectionType
DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_SYNC_BACKUP_COUNT, DEFAULT_VALUE_COLLECTION_TYPE
Constructor and Description |
---|
MultiMapConfigReadOnly(MultiMapConfig defConfig) |
Modifier and Type | Method and Description |
---|---|
MultiMapConfig |
addEntryListenerConfig(EntryListenerConfig listenerConfig)
Adds an entry listener to this MultiMap (listens for when entries are added or removed).
|
List<EntryListenerConfig> |
getEntryListenerConfigs()
Gets the list of entry listeners (listens for when entries are added or removed) for this MultiMap.
|
MultiMapConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups.
|
MultiMapConfig |
setBackupCount(int backupCount)
Sets the number of synchronous backups.
|
MultiMapConfig |
setBinary(boolean binary)
Enables or disables binary (serialized) form for this MultiMap.
|
MultiMapConfig |
setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
Sets the list of entry listeners (listens for when entries are added or removed) for this MultiMap.
|
MultiMapConfig |
setName(String name)
Sets the name of this MultiMap.
|
MultiMapConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Enables or disables statistics for this MultiMap.
|
MultiMapConfig |
setSyncBackupCount(int syncBackupCount) |
MultiMapConfig |
setValueCollectionType(MultiMapConfig.ValueCollectionType valueCollectionType)
Sets the collection type for the values of this MultiMap.
|
MultiMapConfig |
setValueCollectionType(String valueCollectionType)
Sets the collection type for the values of this MultiMap.
|
getAsReadOnly, getAsyncBackupCount, getBackupCount, getName, getSyncBackupCount, getTotalBackupCount, getValueCollectionType, isBinary, isStatisticsEnabled, toString
public MultiMapConfigReadOnly(MultiMapConfig defConfig)
public List<EntryListenerConfig> getEntryListenerConfigs()
MultiMapConfig
getEntryListenerConfigs
in class MultiMapConfig
public MultiMapConfig setName(String name)
MultiMapConfig
setName
in class MultiMapConfig
name
- The name to set for this MultiMap.public MultiMapConfig setValueCollectionType(String valueCollectionType)
MultiMapConfig
setValueCollectionType
in class MultiMapConfig
valueCollectionType
- The collection type for the values of this MultiMap (SET or LIST).public MultiMapConfig setValueCollectionType(MultiMapConfig.ValueCollectionType valueCollectionType)
MultiMapConfig
setValueCollectionType
in class MultiMapConfig
valueCollectionType
- The collection type for the values of this MultiMap (SET or LIST).public MultiMapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
MultiMapConfig
addEntryListenerConfig
in class MultiMapConfig
listenerConfig
- The entry listener to add to this MultiMap.public MultiMapConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
MultiMapConfig
setEntryListenerConfigs
in class MultiMapConfig
listenerConfigs
- The list of entry listeners for this MultiMap.public MultiMapConfig setBinary(boolean binary)
MultiMapConfig
setBinary
in class MultiMapConfig
binary
- True to set the MultiMap to binary (serialized) form, false otherwise.public MultiMapConfig setSyncBackupCount(int syncBackupCount)
setSyncBackupCount
in class MultiMapConfig
public MultiMapConfig setBackupCount(int backupCount)
MultiMapConfig
setBackupCount
in class MultiMapConfig
backupCount
- the number of synchronous backups to set for this MultiMapMultiMapConfig.setAsyncBackupCount(int)
public MultiMapConfig setAsyncBackupCount(int asyncBackupCount)
MultiMapConfig
setAsyncBackupCount
in class MultiMapConfig
asyncBackupCount
- the number of asynchronous synchronous backups to setMultiMapConfig.setBackupCount(int)
,
MultiMapConfig.getAsyncBackupCount()
public MultiMapConfig setStatisticsEnabled(boolean statisticsEnabled)
MultiMapConfig
setStatisticsEnabled
in class MultiMapConfig
statisticsEnabled
- True to enable statistics for this MultiMap, false to disable.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.