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, toStringpublic TopicConfigReadOnly(TopicConfig config)
public List<ListenerConfig> getMessageListenerConfigs()
TopicConfiggetMessageListenerConfigs in class TopicConfigpublic TopicConfig setName(String name)
TopicConfigsetName in class TopicConfigname - the topic name to set.public TopicConfig setGlobalOrderingEnabled(boolean globalOrderingEnabled)
TopicConfigsetGlobalOrderingEnabled in class TopicConfigglobalOrderingEnabled - set to true to enable global ordering, false to disablepublic TopicConfig addMessageListenerConfig(ListenerConfig listenerConfig)
TopicConfigaddMessageListenerConfig in class TopicConfiglistenerConfig - The message listener to add to this topic.public TopicConfig setMessageListenerConfigs(List<ListenerConfig> listenerConfigs)
TopicConfigsetMessageListenerConfigs in class TopicConfiglistenerConfigs - The list of message listeners for this topic.public TopicConfig setStatisticsEnabled(boolean statisticsEnabled)
TopicConfigsetStatisticsEnabled in class TopicConfigstatisticsEnabled - True to enable statistics for this topic, false to disable.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.