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 |
setName(String name)
Deprecated.
Sets the name of this collection.
|
ListConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Deprecated.
Sets collection statistics to enabled or disabled.
|
getAsReadOnly
getAsyncBackupCount, getBackupCount, getMaxSize, getName, getTotalBackupCount, isStatisticsEnabled
public ListConfigReadOnly(ListConfig config)
public List<ItemListenerConfig> getItemListenerConfigs()
CollectionConfig
getItemListenerConfigs
in class CollectionConfig<ListConfig>
public ListConfig setName(String name)
CollectionConfig
setName
in class CollectionConfig<ListConfig>
name
- The name of this collection.public ListConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
CollectionConfig
setItemListenerConfigs
in class CollectionConfig<ListConfig>
listenerConfigs
- The list of ItemListenerConfigs to set.public ListConfig setBackupCount(int backupCount)
CollectionConfig
setBackupCount
in class CollectionConfig<ListConfig>
backupCount
- the number of synchronous backups to set for this collection.CollectionConfig.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 disable.public void addItemListenerConfig(ItemListenerConfig itemListenerConfig)
CollectionConfig
addItemListenerConfig
in class CollectionConfig<ListConfig>
itemListenerConfig
- The item listener to add to this collection.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.