public class ListConfigReadOnly extends ListConfig
IList (read-only).DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_MAX_SIZE, DEFAULT_SYNC_BACKUP_COUNT| Constructor and Description |
|---|
ListConfigReadOnly(ListConfig config) |
| Modifier and Type | Method and Description |
|---|---|
ListConfig |
addItemListenerConfig(ItemListenerConfig itemListenerConfig)
Adds an item listener to this collection (listens for when items are added or removed).
|
List<ItemListenerConfig> |
getItemListenerConfigs()
Gets the list of ItemListenerConfigs.
|
ListConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups.
|
ListConfig |
setBackupCount(int backupCount)
Sets the number of synchronous backups for this collection.
|
ListConfig |
setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
Sets the list of ItemListenerConfigs.
|
ListConfig |
setMaxSize(int maxSize)
Sets the maximum size for the collection.
|
ListConfig |
setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Sets the
MergePolicyConfig for the collection. |
ListConfig |
setName(String name)
Sets the name of this collection.
|
ListConfig |
setSplitBrainProtectionName(String splitBrainProtectionName)
Sets the split brain protection name for operations.
|
ListConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Sets collection statistics to enabled or disabled.
|
getClassId, toStringequals, fieldsToString, getAsyncBackupCount, getBackupCount, getFactoryId, getMaxSize, getMergePolicyConfig, getName, getProvidedMergeTypes, getSplitBrainProtectionName, getTotalBackupCount, hashCode, isStatisticsEnabled, readData, writeDatapublic ListConfigReadOnly(ListConfig config)
public List<ItemListenerConfig> getItemListenerConfigs()
CollectionConfiggetItemListenerConfigs in class CollectionConfig<ListConfig>public ListConfig setName(String name)
CollectionConfigsetName in interface NamedConfigsetName in class CollectionConfig<ListConfig>name - the name of this collectionpublic ListConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
CollectionConfigsetItemListenerConfigs in class CollectionConfig<ListConfig>listenerConfigs - the list of ItemListenerConfigs to setpublic ListConfig setBackupCount(int backupCount)
CollectionConfigsetBackupCount in class CollectionConfig<ListConfig>backupCount - the number of synchronous backups to set for this collectionCollectionConfig.setAsyncBackupCount(int)public ListConfig setAsyncBackupCount(int asyncBackupCount)
CollectionConfigsetAsyncBackupCount in class CollectionConfig<ListConfig>asyncBackupCount - the number of asynchronous synchronous backups to setCollectionConfig.setBackupCount(int),
CollectionConfig.getAsyncBackupCount()public ListConfig setMaxSize(int maxSize)
CollectionConfigsetMaxSize in class CollectionConfig<ListConfig>public ListConfig setStatisticsEnabled(boolean statisticsEnabled)
CollectionConfigsetStatisticsEnabled in class CollectionConfig<ListConfig>statisticsEnabled - true to enable collection statistics, false to disablepublic ListConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
CollectionConfigMergePolicyConfig for the collection.setMergePolicyConfig in class CollectionConfig<ListConfig>public ListConfig addItemListenerConfig(ItemListenerConfig itemListenerConfig)
CollectionConfigaddItemListenerConfig in class CollectionConfig<ListConfig>itemListenerConfig - the item listener to add to this collectionpublic ListConfig setSplitBrainProtectionName(String splitBrainProtectionName)
CollectionConfigsetSplitBrainProtectionName in class CollectionConfig<ListConfig>splitBrainProtectionName - the split brain protection nameCopyright © 2019 Hazelcast, Inc.. All rights reserved.