public class TopicConfig extends Object
ITopic
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_GLOBAL_ORDERING_ENABLED
Default global ordering configuration
|
Constructor and Description |
---|
TopicConfig()
Creates a TopicConfig.
|
TopicConfig(TopicConfig config)
Creates a
TopicConfig by cloning another TopicConfig. |
Modifier and Type | Method and Description |
---|---|
TopicConfig |
addMessageListenerConfig(ListenerConfig listenerConfig) |
boolean |
equals(Object obj) |
TopicConfigReadOnly |
getAsReadOnly() |
List<ListenerConfig> |
getMessageListenerConfigs() |
String |
getName()
Gets the name of the topic, null if nothing is set.
|
int |
hashCode() |
boolean |
isGlobalOrderingEnabled() |
boolean |
isStatisticsEnabled()
Checks if statistics are enabled.
|
TopicConfig |
setGlobalOrderingEnabled(boolean globalOrderingEnabled) |
TopicConfig |
setMessageListenerConfigs(List<ListenerConfig> listenerConfigs) |
TopicConfig |
setName(String name)
Sets the name of the topic.
|
TopicConfig |
setStatisticsEnabled(boolean statisticsEnabled) |
String |
toString() |
public static final boolean DEFAULT_GLOBAL_ORDERING_ENABLED
public TopicConfig()
public TopicConfig(TopicConfig config)
TopicConfig
by cloning another TopicConfig.config
- public TopicConfigReadOnly getAsReadOnly()
public String getName()
public TopicConfig setName(String name)
name
- the name to setIllegalArgumentException
- if name is null or an empty string.public boolean isGlobalOrderingEnabled()
public TopicConfig setGlobalOrderingEnabled(boolean globalOrderingEnabled)
globalOrderingEnabled
- the globalOrderingEnabled to setpublic TopicConfig addMessageListenerConfig(ListenerConfig listenerConfig)
public List<ListenerConfig> getMessageListenerConfigs()
public TopicConfig setMessageListenerConfigs(List<ListenerConfig> listenerConfigs)
public boolean isStatisticsEnabled()
public TopicConfig setStatisticsEnabled(boolean statisticsEnabled)
statisticsEnabled
- Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.