com.hazelcast.config
Class TopicConfig

java.lang.Object
  extended by com.hazelcast.config.TopicConfig
Direct Known Subclasses:
TopicConfigReadOnly

public class TopicConfig
extends Object

Contains the configuration for a ITopic.


Field Summary
static boolean DEFAULT_GLOBAL_ORDERING_ENABLED
          Default global ordering configuration
 
Constructor Summary
TopicConfig()
          Creates a TopicConfig.
TopicConfig(TopicConfig config)
          Creates a TopicConfig by cloning another TopicConfig.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_GLOBAL_ORDERING_ENABLED

public static final boolean DEFAULT_GLOBAL_ORDERING_ENABLED
Default global ordering configuration

See Also:
Constant Field Values
Constructor Detail

TopicConfig

public TopicConfig()
Creates a TopicConfig.


TopicConfig

public TopicConfig(TopicConfig config)
Creates a TopicConfig by cloning another TopicConfig.

Parameters:
config -
Method Detail

getAsReadOnly

public TopicConfigReadOnly getAsReadOnly()

getName

public String getName()
Gets the name of the topic, null if nothing is set.

Returns:
the name

setName

public TopicConfig setName(String name)
Sets the name of the topic.

Parameters:
name - the name to set
Returns:
the updated TopicConfig
Throws:
IllegalArgumentException - if name is null or an empty string.

isGlobalOrderingEnabled

public boolean isGlobalOrderingEnabled()
Returns:
the globalOrderingEnabled

setGlobalOrderingEnabled

public TopicConfig setGlobalOrderingEnabled(boolean globalOrderingEnabled)
Parameters:
globalOrderingEnabled - the globalOrderingEnabled to set

addMessageListenerConfig

public TopicConfig addMessageListenerConfig(ListenerConfig listenerConfig)

getMessageListenerConfigs

public List<ListenerConfig> getMessageListenerConfigs()

setMessageListenerConfigs

public TopicConfig setMessageListenerConfigs(List<ListenerConfig> listenerConfigs)

isStatisticsEnabled

public boolean isStatisticsEnabled()
Checks if statistics are enabled.

Returns:
true if enabled, false otherwise.

setStatisticsEnabled

public TopicConfig setStatisticsEnabled(boolean statisticsEnabled)
Parameters:
statisticsEnabled -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.