public class SetConfigReadOnly extends SetConfig
DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_MAX_SIZE, DEFAULT_SYNC_BACKUP_COUNT
Constructor and Description |
---|
SetConfigReadOnly(SetConfig 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.
|
SetConfig |
setAsyncBackupCount(int asyncBackupCount)
Deprecated.
Sets the number of asynchronous backups.
|
SetConfig |
setBackupCount(int backupCount)
Deprecated.
Sets the number of synchronous backups for this collection.
|
SetConfig |
setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
Deprecated.
Sets the list of ItemListenerConfigs.
|
SetConfig |
setMaxSize(int maxSize)
Deprecated.
Sets the maximum size for the collection.
|
SetConfig |
setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Deprecated.
Sets the
MergePolicyConfig for the collection. |
SetConfig |
setName(String name)
Deprecated.
Sets the name of this collection.
|
SetConfig |
setQuorumName(String quorumName)
Deprecated.
Sets the quorum name for operations.
|
SetConfig |
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 SetConfigReadOnly(SetConfig config)
public List<ItemListenerConfig> getItemListenerConfigs()
CollectionConfig
getItemListenerConfigs
in class CollectionConfig<SetConfig>
public SetConfig setName(String name)
CollectionConfig
setName
in interface NamedConfig
setName
in class CollectionConfig<SetConfig>
name
- the name of this collectionpublic SetConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)
CollectionConfig
setItemListenerConfigs
in class CollectionConfig<SetConfig>
listenerConfigs
- the list of ItemListenerConfigs to setpublic SetConfig setBackupCount(int backupCount)
CollectionConfig
setBackupCount
in class CollectionConfig<SetConfig>
backupCount
- the number of synchronous backups to set for this collectionCollectionConfig.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 disablepublic SetConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
CollectionConfig
MergePolicyConfig
for the collection.setMergePolicyConfig
in class CollectionConfig<SetConfig>
public void addItemListenerConfig(ItemListenerConfig itemListenerConfig)
CollectionConfig
addItemListenerConfig
in class CollectionConfig<SetConfig>
itemListenerConfig
- the item listener to add to this collectionpublic SetConfig setQuorumName(String quorumName)
CollectionConfig
setQuorumName
in class CollectionConfig<SetConfig>
quorumName
- the quorum nameCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.