Package io.moquette.broker.config
Class IConfig
- java.lang.Object
-
- io.moquette.broker.config.IConfig
-
- Direct Known Subclasses:
MemoryConfig,ResourceLoaderConfig
public abstract class IConfig extends Object
Base interface for all configuration implementations (filesystem, memory or classpath)
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONFIG
-
Constructor Summary
Constructors Constructor Description IConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanboolProp(String propertyName, boolean defaultValue)abstract StringgetProperty(String name)Same semantic of Propertiesabstract StringgetProperty(String name, String defaultValue)Same semantic of Propertiesabstract IResourceLoadergetResourceLoader()intintProp(String propertyName, int defaultValue)abstract voidsetProperty(String name, String value)
-
-
-
Field Detail
-
DEFAULT_CONFIG
public static final String DEFAULT_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperty
public abstract String getProperty(String name)
Same semantic of Properties- Parameters:
name- property name.- Returns:
- property value.
-
getProperty
public abstract String getProperty(String name, String defaultValue)
Same semantic of Properties- Parameters:
name- property name.defaultValue- default value to return in case the property doesn't exists.- Returns:
- property value.
-
getResourceLoader
public abstract IResourceLoader getResourceLoader()
-
intProp
public int intProp(String propertyName, int defaultValue)
-
boolProp
public boolean boolProp(String propertyName, boolean defaultValue)
-
-