Package io.moquette.broker.config
Class MemoryConfig
- java.lang.Object
-
- io.moquette.broker.config.IConfig
-
- io.moquette.broker.config.MemoryConfig
-
public class MemoryConfig extends IConfig
Configuration backed by memory.
-
-
Field Summary
-
Fields inherited from class io.moquette.broker.config.IConfig
DEFAULT_CONFIG
-
-
Constructor Summary
Constructors Constructor Description MemoryConfig(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProperty(String name)Same semantic of PropertiesStringgetProperty(String name, String defaultValue)Same semantic of PropertiesIResourceLoadergetResourceLoader()voidsetProperty(String name, String value)
-
-
-
Constructor Detail
-
MemoryConfig
public MemoryConfig(Properties properties)
-
-
Method Detail
-
setProperty
public void setProperty(String name, String value)
- Specified by:
setPropertyin classIConfig
-
getProperty
public String getProperty(String name)
Description copied from class:IConfigSame semantic of Properties- Specified by:
getPropertyin classIConfig- Parameters:
name- property name.- Returns:
- property value.
-
getProperty
public String getProperty(String name, String defaultValue)
Description copied from class:IConfigSame semantic of Properties- Specified by:
getPropertyin classIConfig- Parameters:
name- property name.defaultValue- default value to return in case the property doesn't exists.- Returns:
- property value.
-
getResourceLoader
public IResourceLoader getResourceLoader()
- Specified by:
getResourceLoaderin classIConfig
-
-