public class SetConfigReadOnly extends SetConfig
DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_MAX_SIZE, DEFAULT_SYNC_BACKUP_COUNT
Constructor and Description |
---|
SetConfigReadOnly(SetConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
SetConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups.
|
SetConfig |
setBackupCount(int backupCount)
Sets the number of synchronous backups for this collection.
|
SetConfig |
setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
Sets the list of ItemListenerConfigs.
|
SetConfig |
setMaxSize(int maxSize)
Sets the maximum size for the collection.
|
SetConfig |
setName(String name)
Sets the name of this collection.
|
SetConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Sets collection statistics to enabled or disabled.
|
getAsReadOnly
getAsyncBackupCount, getBackupCount, getMaxSize, getName, getTotalBackupCount, isStatisticsEnabled
public SetConfigReadOnly(SetConfig config)
public List<ItemListenerConfig> getItemListenerConfigs()
CollectionConfig
getItemListenerConfigs
in class CollectionConfig<SetConfig>
public SetConfig setName(String name)
CollectionConfig
setName
in class CollectionConfig<SetConfig>
name
- The name of this collection.public SetConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
CollectionConfig
setItemListenerConfigs
in class CollectionConfig<SetConfig>
listenerConfigs
- The list of ItemListenerConfigs to set.public SetConfig setBackupCount(int backupCount)
CollectionConfig
setBackupCount
in class CollectionConfig<SetConfig>
backupCount
- the number of synchronous backups to set for this collection.CollectionConfig.setAsyncBackupCount(int)
public SetConfig setAsyncBackupCount(int asyncBackupCount)
CollectionConfig
setAsyncBackupCount
in class CollectionConfig<SetConfig>
asyncBackupCount
- the number of asynchronous synchronous backups to setCollectionConfig.setBackupCount(int)
,
CollectionConfig.getAsyncBackupCount()
public SetConfig setMaxSize(int maxSize)
CollectionConfig
setMaxSize
in class CollectionConfig<SetConfig>
public SetConfig setStatisticsEnabled(boolean statisticsEnabled)
CollectionConfig
setStatisticsEnabled
in class CollectionConfig<SetConfig>
statisticsEnabled
- True to enable collection statistics, false to disable.public void addItemListenerConfig(ItemListenerConfig itemListenerConfig)
CollectionConfig
addItemListenerConfig
in class CollectionConfig<SetConfig>
itemListenerConfig
- The item listener to add to this collection.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.