public class TopicConfigReadOnly extends TopicConfig
DEFAULT_GLOBAL_ORDERING_ENABLED
Constructor and Description |
---|
TopicConfigReadOnly(TopicConfig config)
Deprecated.
|
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.
|
equals, getAsReadOnly, getName, hashCode, isGlobalOrderingEnabled, isMultiThreadingEnabled, isStatisticsEnabled, toString
public TopicConfigReadOnly(TopicConfig config)
public List<ListenerConfig> getMessageListenerConfigs()
TopicConfig
getMessageListenerConfigs
in class TopicConfig
public TopicConfig setName(String name)
TopicConfig
setName
in class TopicConfig
name
- the topic name to set.TopicConfig
public TopicConfig setGlobalOrderingEnabled(boolean globalOrderingEnabled)
TopicConfig
setGlobalOrderingEnabled
in class TopicConfig
globalOrderingEnabled
- set to true to enable global ordering, false to disablepublic TopicConfig setMultiThreadingEnabled(boolean multiThreadingEnabled)
TopicConfig
setMultiThreadingEnabled
in class TopicConfig
multiThreadingEnabled
- set to true to enable multi-threaded message processing, false to disablepublic TopicConfig addMessageListenerConfig(ListenerConfig listenerConfig)
TopicConfig
addMessageListenerConfig
in class TopicConfig
listenerConfig
- The message listener to add to this topic.public TopicConfig setMessageListenerConfigs(List<ListenerConfig> listenerConfigs)
TopicConfig
setMessageListenerConfigs
in class TopicConfig
listenerConfigs
- The list of message listeners for this topic.public TopicConfig setStatisticsEnabled(boolean statisticsEnabled)
TopicConfig
setStatisticsEnabled
in class TopicConfig
statisticsEnabled
- True to enable statistics for this topic, false to disable.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.