Package de.poiu.coat.example
Class ImmutableMqttConfig
- java.lang.Object
-
- de.poiu.coat.CoatConfig
-
- de.poiu.coat.example.ImmutableMqttConfig
-
- All Implemented Interfaces:
MqttConfig
@Generated(value="de.poiu.coat.processor.CoatProcessor", date="2021-05-31T15:08:20.100021+02:00") public class ImmutableMqttConfig extends CoatConfig implements MqttConfig
-
-
Constructor Summary
Constructors Constructor Description ImmutableMqttConfig(File file)ImmutableMqttConfig(Map<String,String> props)ImmutableMqttConfig(Properties props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddressbrokerAddress()The address of the MQTT broker.Optional<String>clientId()The clientId to send to the MQTT broker.booleanequals(Object obj)inthashCode()Optional<String>password()The password to connect to the MQTT broker.intport()The port to communicate with the MQTT broker.Optional<String>username()The username to connect to the MQTT broker.static voidwriteExampleConfig(BufferedWriter writer)static voidwriteExampleConfig(Writer writer)-
Methods inherited from class de.poiu.coat.CoatConfig
filterByAndStripPrefix, get, get, getBoolean, getBooleanOrDefault, getDouble, getDoubleOrDefault, getInt, getIntOrDefault, getLong, getLongOrDefault, getOptional, getOptionalDouble, getOptionalDoubleOrDefault, getOptionalInt, getOptionalIntOrDefault, getOptionalLong, getOptionalLongOrDefault, getOptionalOrDefault, getOptionalString, getOrDefault, getString, getStringOrDefault, hasPrefix, registerConverter, registerEmbeddedConfig, toMap, toMap, toString, validate
-
-
-
-
Constructor Detail
-
ImmutableMqttConfig
public ImmutableMqttConfig(File file) throws IOException
- Throws:
IOException
-
ImmutableMqttConfig
public ImmutableMqttConfig(Properties props)
-
-
Method Detail
-
clientId
public Optional<String> clientId()
The clientId to send to the MQTT broker.- Specified by:
clientIdin interfaceMqttConfig
-
brokerAddress
public InetAddress brokerAddress()
The address of the MQTT broker.- Specified by:
brokerAddressin interfaceMqttConfig
-
port
public int port()
The port to communicate with the MQTT broker.- Specified by:
portin interfaceMqttConfig
-
username
public Optional<String> username()
The username to connect to the MQTT broker.- Specified by:
usernamein interfaceMqttConfig
-
password
public Optional<String> password()
The password to connect to the MQTT broker.- Specified by:
passwordin interfaceMqttConfig
-
writeExampleConfig
public static void writeExampleConfig(Writer writer) throws IOException
- Throws:
IOException
-
writeExampleConfig
public static void writeExampleConfig(BufferedWriter writer) throws IOException
- Throws:
IOException
-
-