com.hazelcast.config

## Class TopicConfigReadOnly

- java.lang.Object
- - com.hazelcast.config.TopicConfig
  - - com.hazelcast.config.TopicConfigReadOnly

- All Implemented Interfaces:
    NamedConfig, DataSerializable, IdentifiedDataSerializable

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

      public class TopicConfigReadOnly
      extends TopicConfig

  Configuration for topic(Read only)

- - ### Field Summary

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

      `DEFAULT_GLOBAL_ORDERING_ENABLED`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TopicConfigReadOnly(TopicConfig config)` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `TopicConfig` | `addMessageListenerConfig(ListenerConfig listenerConfig)` Deprecated. Adds a message listener to this topic (listens for when messages are added or removed).
    `List<ListenerConfig>` | `getMessageListenerConfigs()` Deprecated. Gets the list of message listeners (listens for when messages are added or removed) for this topic.
    `TopicConfig` | `setGlobalOrderingEnabled(boolean globalOrderingEnabled)` Deprecated. Enable global ordering (all nodes listening to the same topic get their messages in the same order), or disable it (nodes get the messages in the order that the messages are published).
    `TopicConfig` | `setMessageListenerConfigs(List<ListenerConfig> listenerConfigs)` Deprecated. Sets the list of message listeners (listens for when messages are added or removed) for this topic.
    `TopicConfig` | `setMultiThreadingEnabled(boolean multiThreadingEnabled)` Deprecated. Enable multi-threaded message handling.
    `TopicConfig` | `setName(String name)` Deprecated. Sets the name of the topic.
    `TopicConfig` | `setStatisticsEnabled(boolean statisticsEnabled)` Deprecated. Enables or disables statistics for this topic.

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

      `equals, getAsReadOnly, getFactoryId, getId, getName, hashCode, isGlobalOrderingEnabled, isMultiThreadingEnabled, isStatisticsEnabled, readData, toString, writeData`

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

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

- - ### Constructor Detail

    - #### TopicConfigReadOnly

          public TopicConfigReadOnly(TopicConfig config)

      Deprecated.

  - ### Method Detail

    - #### getMessageListenerConfigs

          public List<ListenerConfig> getMessageListenerConfigs()

      Deprecated.
      Description copied from class: `TopicConfig`
      Gets the list of message listeners (listens for when messages are added or removed) for this topic.
      Overrides:
        `getMessageListenerConfigs` in class `TopicConfig`
      Returns:
        the list of message listeners for this topic

    - #### setName

          public TopicConfig setName(String name)

      Deprecated.
      Description copied from class: `TopicConfig`
      Sets the name of the topic.
      Specified by:
        `setName` in interface `NamedConfig`
      Overrides:
        `setName` in class `TopicConfig`
      Parameters:
        `name` - the topic name to set
      Returns:
        the updated `TopicConfig`

    - #### setGlobalOrderingEnabled

          public TopicConfig setGlobalOrderingEnabled(boolean globalOrderingEnabled)

      Deprecated.
      Description copied from class: `TopicConfig`
      Enable global ordering (all nodes listening to the same topic get their messages in the same order), or disable it (nodes get the messages in the order that the messages are published).
      Overrides:
        `setGlobalOrderingEnabled` in class `TopicConfig`
      Parameters:
        `globalOrderingEnabled` - set to `true` to enable global ordering, `false` to disable
      Returns:
        the updated TopicConfig

    - #### setMultiThreadingEnabled

          public TopicConfig setMultiThreadingEnabled(boolean multiThreadingEnabled)

      Deprecated.
      Description copied from class: `TopicConfig`
      Enable multi-threaded message handling. When enabled any thread from events thread pool can be used for incoming message processing. Otherwise only one dedicated thread will be used to handle topic messages. Note: it can be enabled only in case when global ordering is disabled. Moreover, the local message ordering is not supported in this mode also. This means the messages produced by local publisher can be processed by several threads with no ordering guarantee.
      Overrides:
        `setMultiThreadingEnabled` in class `TopicConfig`
      Parameters:
        `multiThreadingEnabled` - set to `true` to enable multi-threaded message processing, `false` to disable
      Returns:
        the updated TopicConfig

    - #### addMessageListenerConfig

          public TopicConfig addMessageListenerConfig(ListenerConfig listenerConfig)

      Deprecated.
      Description copied from class: `TopicConfig`
      Adds a message listener to this topic (listens for when messages are added or removed).
      Overrides:
        `addMessageListenerConfig` in class `TopicConfig`
      Parameters:
        `listenerConfig` - the message listener to add to this topic

    - #### setMessageListenerConfigs

          public TopicConfig setMessageListenerConfigs(List<ListenerConfig> listenerConfigs)

      Deprecated.
      Description copied from class: `TopicConfig`
      Sets the list of message listeners (listens for when messages are added or removed) for this topic.
      Overrides:
        `setMessageListenerConfigs` in class `TopicConfig`
      Parameters:
        `listenerConfigs` - the list of message listeners for this topic
      Returns:
        this updated topic configuration

    - #### setStatisticsEnabled

          public TopicConfig setStatisticsEnabled(boolean statisticsEnabled)

      Deprecated.
      Description copied from class: `TopicConfig`
      Enables or disables statistics for this topic.
      Overrides:
        `setStatisticsEnabled` in class `TopicConfig`
      Parameters:
        `statisticsEnabled` - `true` to enable statistics for this topic, `false` to disable
      Returns:
        the updated TopicConfig

Copyright © 2019. All rights reserved.