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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addItemListenerConfig(ItemListenerConfig itemListenerConfig)
Deprecated.
Adds an item listener to this collection (listens for when items are added or removed).
|
List<ItemListenerConfig> |
getItemListenerConfigs()
Deprecated.
Gets the list of ItemListenerConfigs.
|
ListConfig |
setAsyncBackupCount(int asyncBackupCount)
Deprecated.
Sets the number of asynchronous backups.
|
ListConfig |
setBackupCount(int backupCount)
Deprecated.
Sets the number of synchronous backups for this collection.
|
ListConfig |
setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
Deprecated.
Sets the list of ItemListenerConfigs.
|
ListConfig |
setMaxSize(int maxSize)
Deprecated.
Sets the maximum size for the collection.
|
ListConfig |
setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Deprecated.
Sets the
MergePolicyConfig for the collection. |
ListConfig |
setName(String name)
Deprecated.
Sets the name of this collection.
|
ListConfig |
setQuorumName(String quorumName)
Deprecated.
Sets the quorum name for operations.
|
ListConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Deprecated.
Sets collection statistics to enabled or disabled.
|
getAsReadOnly, getId, toString
equals, fieldsToString, getAsyncBackupCount, getBackupCount, getFactoryId, getMaxSize, getMergePolicyConfig, getName, getProvidedMergeTypes, getQuorumName, getTotalBackupCount, hashCode, isStatisticsEnabled, readData, writeData
public ListConfigReadOnly(ListConfig config)
public List<ItemListenerConfig> getItemListenerConfigs()
CollectionConfig
getItemListenerConfigs
in class CollectionConfig<ListConfig>
public ListConfig setName(String name)
CollectionConfig
setName
in interface NamedConfig
setName
in class CollectionConfig<ListConfig>
name
- the name of this collectionpublic ListConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
CollectionConfig
setItemListenerConfigs
in class CollectionConfig<ListConfig>
listenerConfigs
- the list of ItemListenerConfigs to setpublic ListConfig setBackupCount(int backupCount)
CollectionConfig
setBackupCount
in class CollectionConfig<ListConfig>
backupCount
- the number of synchronous backups to set for this collectionCollectionConfig.setAsyncBackupCount(int)
public ListConfig setAsyncBackupCount(int asyncBackupCount)
CollectionConfig
setAsyncBackupCount
in class CollectionConfig<ListConfig>
asyncBackupCount
- the number of asynchronous synchronous backups to setCollectionConfig.setBackupCount(int)
,
CollectionConfig.getAsyncBackupCount()
public ListConfig setMaxSize(int maxSize)
CollectionConfig
setMaxSize
in class CollectionConfig<ListConfig>
public ListConfig setStatisticsEnabled(boolean statisticsEnabled)
CollectionConfig
setStatisticsEnabled
in class CollectionConfig<ListConfig>
statisticsEnabled
- true
to enable collection statistics, false
to disablepublic ListConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
CollectionConfig
MergePolicyConfig
for the collection.setMergePolicyConfig
in class CollectionConfig<ListConfig>
public void addItemListenerConfig(ItemListenerConfig itemListenerConfig)
CollectionConfig
addItemListenerConfig
in class CollectionConfig<ListConfig>
itemListenerConfig
- the item listener to add to this collectionpublic ListConfig setQuorumName(String quorumName)
CollectionConfig
setQuorumName
in class CollectionConfig<ListConfig>
quorumName
- the quorum nameCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.