com.hazelcast.config
public class TopicConfigReadOnly extends TopicConfig
DEFAULT_GLOBAL_ORDERING_ENABLED
Constructor and Description |
---|
TopicConfigReadOnly(TopicConfig config) |
Modifier and Type | Method and Description |
---|---|
TopicConfig |
addMessageListenerConfig(ListenerConfig listenerConfig)
Adds a message listener to this topic (listens for when messages are added or removed).
|
List<ListenerConfig> |
getMessageListenerConfigs()
Gets the list of message listeners (listens for when messages are added or removed) for this topic.
|
TopicConfig |
setGlobalOrderingEnabled(boolean globalOrderingEnabled)
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)
Sets the list of message listeners (listens for when messages are added or removed) for this topic.
|
TopicConfig |
setName(String name)
Sets the name of the topic.
|
TopicConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Enables or disables statistics for this topic.
|
equals, getAsReadOnly, getName, hashCode, isGlobalOrderingEnabled, 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.public TopicConfig setGlobalOrderingEnabled(boolean globalOrderingEnabled)
TopicConfig
setGlobalOrderingEnabled
in class TopicConfig
globalOrderingEnabled
- set to true to enable global ordering, 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 © 2015 Hazelcast, Inc.. All Rights Reserved.