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, getFactoryId, getId, getName, hashCode, isGlobalOrderingEnabled, isMultiThreadingEnabled, isStatisticsEnabled, readData, toString, writeData
public TopicConfigReadOnly(TopicConfig config)
public List<ListenerConfig> getMessageListenerConfigs()
TopicConfig
getMessageListenerConfigs
in class TopicConfig
public TopicConfig setName(String name)
TopicConfig
setName
in interface NamedConfig
setName
in class TopicConfig
name
- the topic name to setTopicConfig
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 topicpublic TopicConfig setMessageListenerConfigs(List<ListenerConfig> listenerConfigs)
TopicConfig
setMessageListenerConfigs
in class TopicConfig
listenerConfigs
- the list of message listeners for this topicpublic TopicConfig setStatisticsEnabled(boolean statisticsEnabled)
TopicConfig
setStatisticsEnabled
in class TopicConfig
statisticsEnabled
- true
to enable statistics for this topic, false
to disableCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.