public class MultiMapConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MultiMapConfig.ValueCollectionType
Type of value collection
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ASYNC_BACKUP_COUNT
The default number of asynchronous backups for this MultiMap.
|
static int |
DEFAULT_SYNC_BACKUP_COUNT
The default number of synchronous backups for this MultiMap.
|
static MultiMapConfig.ValueCollectionType |
DEFAULT_VALUE_COLLECTION_TYPE
Default value collection type of this MultiMap.
|
Constructor and Description |
---|
MultiMapConfig() |
MultiMapConfig(MultiMapConfig defConfig) |
MultiMapConfig(String name) |
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).
|
MultiMapConfigReadOnly |
getAsReadOnly()
Gets the immutable version of this MultiMap config.
|
int |
getAsyncBackupCount()
Gets the number of asynchronous backups for this MultiMap.
|
int |
getBackupCount()
Gets the number of synchronous backups for this MultiMap.
|
List<EntryListenerConfig> |
getEntryListenerConfigs()
Gets the list of entry listeners (listens for when entries are added or removed) for this MultiMap.
|
String |
getName()
Gets the name of this MultiMap.
|
int |
getSyncBackupCount()
Deprecated.
|
int |
getTotalBackupCount()
Gets the total number of backups (synchronous + asynchronous) for this MultiMap.
|
MultiMapConfig.ValueCollectionType |
getValueCollectionType()
Gets the collection type for the values of this MultiMap.
|
boolean |
isBinary()
Checks if the MultiMap is in binary (serialized) form.
|
boolean |
isStatisticsEnabled()
Checks to see if statistics are enabled 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)
Deprecated.
|
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.
|
String |
toString() |
public static final int DEFAULT_SYNC_BACKUP_COUNT
public static final int DEFAULT_ASYNC_BACKUP_COUNT
public static final MultiMapConfig.ValueCollectionType DEFAULT_VALUE_COLLECTION_TYPE
public MultiMapConfig()
public MultiMapConfig(String name)
public MultiMapConfig(MultiMapConfig defConfig)
public MultiMapConfigReadOnly getAsReadOnly()
public String getName()
public MultiMapConfig setName(String name)
name
- The name to set for this MultiMap.public MultiMapConfig.ValueCollectionType getValueCollectionType()
public MultiMapConfig setValueCollectionType(String valueCollectionType)
valueCollectionType
- The collection type for the values of this MultiMap (SET or LIST).public MultiMapConfig setValueCollectionType(MultiMapConfig.ValueCollectionType valueCollectionType)
valueCollectionType
- The collection type for the values of this MultiMap (SET or LIST).public MultiMapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
listenerConfig
- The entry listener to add to this MultiMap.public List<EntryListenerConfig> getEntryListenerConfigs()
public MultiMapConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
listenerConfigs
- The list of entry listeners for this MultiMap.public boolean isBinary()
public MultiMapConfig setBinary(boolean binary)
binary
- True to set the MultiMap to binary (serialized) form, false otherwise.@Deprecated public int getSyncBackupCount()
@Deprecated public MultiMapConfig setSyncBackupCount(int syncBackupCount)
public int getBackupCount()
public MultiMapConfig setBackupCount(int backupCount)
backupCount
- the number of synchronous backups to set for this MultiMapIllegalArgumentException
- if backupCount smaller than 0,
or larger than the maximum number of backup
or the sum of the backups and async backups is larger than the maximum number of backupssetAsyncBackupCount(int)
public int getAsyncBackupCount()
public MultiMapConfig setAsyncBackupCount(int asyncBackupCount)
asyncBackupCount
- the number of asynchronous synchronous backups to setIllegalArgumentException
- if asyncBackupCount smaller than 0,
or larger than the maximum number of backup
or the sum of the backups and async backups is larger than the maximum number of backupssetBackupCount(int)
,
getAsyncBackupCount()
public int getTotalBackupCount()
public boolean isStatisticsEnabled()
public MultiMapConfig setStatisticsEnabled(boolean statisticsEnabled)
statisticsEnabled
- True to enable statistics for this MultiMap, false to disable.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.