Package de.poiu.coat.example
Interface AppConfig
- All Known Implementing Classes:
ImmutableAppConfig
public interface AppConfig
Main configuration for the example application.
Since we use Bean Validation we must use a “get” prefix. Otherwise Bean Validation would
silently ignore the annotations.
-
Method Summary
Modifier and TypeMethodDescriptionA short getDescription of the purpose of this application.The interfaces to listen on for incoming connections.@jakarta.validation.constraints.Min(1024L),@jakarta.validation.constraints.Max(49151L) intThe port to listen on for incoming connections.getName()A shorthand getName for this application.mqtt()The configuration for the MQTT connection
-
Method Details
-
getName
String getName()A shorthand getName for this application. -
getDescription
A short getDescription of the purpose of this application. -
getListenAddress
InetAddress getListenAddress()The interfaces to listen on for incoming connections. -
getListenPort
@Min(1024L) @Max(49151L) @jakarta.validation.constraints.Min(1024L),@jakarta.validation.constraints.Max(49151L) int getListenPort()The port to listen on for incoming connections. -
mqtt
MqttConfig mqtt()The configuration for the MQTT connection
-