com.hazelcast.config

## Class SetConfigReadOnly

- java.lang.Object
- - com.hazelcast.config.CollectionConfig<SetConfig>
  - - com.hazelcast.config.SetConfig
    - - com.hazelcast.config.SetConfigReadOnly

- All Implemented Interfaces:
    NamedConfig, DataSerializable, IdentifiedDataSerializable, com.hazelcast.nio.serialization.impl.Versioned, SplitBrainMergeTypeProvider

  Deprecated.
  this class will be removed in 4.0; it is meant for internal usage only.

      public class SetConfigReadOnly
      extends SetConfig

  Contains configuration for Set(read only)

- - ### Field Summary

    - ### Fields inherited from class com.hazelcast.config.CollectionConfig

      `DEFAULT_ASYNC_BACKUP_COUNT, DEFAULT_MAX_SIZE, DEFAULT_SYNC_BACKUP_COUNT`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SetConfigReadOnly(SetConfig config)` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    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.

    - ### Methods inherited from class com.hazelcast.config.SetConfig

      `getAsReadOnly, getId, toString`

    - ### Methods inherited from class com.hazelcast.config.CollectionConfig

      `equals, fieldsToString, getAsyncBackupCount, getBackupCount, getFactoryId, getMaxSize, getMergePolicyConfig, getName, getProvidedMergeTypes, getQuorumName, getTotalBackupCount, hashCode, isStatisticsEnabled, readData, writeData`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SetConfigReadOnly

          public SetConfigReadOnly(SetConfig config)

      Deprecated.

  - ### Method Detail

    - #### getItemListenerConfigs

          public List<ItemListenerConfig> getItemListenerConfigs()

      Deprecated.
      Description copied from class: `CollectionConfig`
      Gets the list of ItemListenerConfigs.
      Overrides:
        `getItemListenerConfigs` in class `CollectionConfig<SetConfig>`
      Returns:
        the list of ItemListenerConfigs

    - #### setName

          public SetConfig setName(String name)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets the name of this collection.
      Specified by:
        `setName` in interface `NamedConfig`
      Overrides:
        `setName` in class `CollectionConfig<SetConfig>`
      Parameters:
        `name` - the name of this collection
      Returns:
        the updated collection configuration

    - #### setItemListenerConfigs

          public SetConfig setItemListenerConfigs(List<ItemListenerConfig> listenerConfigs)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets the list of ItemListenerConfigs.
      Overrides:
        `setItemListenerConfigs` in class `CollectionConfig<SetConfig>`
      Parameters:
        `listenerConfigs` - the list of ItemListenerConfigs to set
      Returns:
        this collection configuration

    - #### setBackupCount

          public SetConfig setBackupCount(int backupCount)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets the number of synchronous backups for this collection.
      Overrides:
        `setBackupCount` in class `CollectionConfig<SetConfig>`
      Parameters:
        `backupCount` - the number of synchronous backups to set for this collection
      Returns:
        the current CollectionConfig
      See Also:
        `CollectionConfig.setAsyncBackupCount(int)`

    - #### setAsyncBackupCount

          public SetConfig setAsyncBackupCount(int asyncBackupCount)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets the number of asynchronous backups.
      Overrides:
        `setAsyncBackupCount` in class `CollectionConfig<SetConfig>`
      Parameters:
        `asyncBackupCount` - the number of asynchronous synchronous backups to set
      Returns:
        the updated CollectionConfig
      See Also:
        `CollectionConfig.setBackupCount(int)`, `CollectionConfig.getAsyncBackupCount()`

    - #### setMaxSize

          public SetConfig setMaxSize(int maxSize)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets the maximum size for the collection.
      Overrides:
        `setMaxSize` in class `CollectionConfig<SetConfig>`
      Returns:
        the current CollectionConfig

    - #### setStatisticsEnabled

          public SetConfig setStatisticsEnabled(boolean statisticsEnabled)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets collection statistics to enabled or disabled.
      Overrides:
        `setStatisticsEnabled` in class `CollectionConfig<SetConfig>`
      Parameters:
        `statisticsEnabled` - `true` to enable collection statistics, `false` to disable
      Returns:
        the current collection config instance

    - #### setMergePolicyConfig

          public SetConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets the `MergePolicyConfig` for the collection.
      Overrides:
        `setMergePolicyConfig` in class `CollectionConfig<SetConfig>`
      Returns:
        the current CollectionConfig

    - #### addItemListenerConfig

          public void addItemListenerConfig(ItemListenerConfig itemListenerConfig)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Adds an item listener to this collection (listens for when items are added or removed).
      Overrides:
        `addItemListenerConfig` in class `CollectionConfig<SetConfig>`
      Parameters:
        `itemListenerConfig` - the item listener to add to this collection

    - #### setQuorumName

          public SetConfig setQuorumName(String quorumName)

      Deprecated.
      Description copied from class: `CollectionConfig`
      Sets the quorum name for operations.
      Overrides:
        `setQuorumName` in class `CollectionConfig<SetConfig>`
      Parameters:
        `quorumName` - the quorum name
      Returns:
        the updated configuration

Copyright © 2019. All rights reserved.