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 Type
    Method
    Description
    A 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) int
    The port to listen on for incoming connections.
    A shorthand getName for this application.
    The configuration for the MQTT connection
  • Method Details

    • getName

      String getName()
      A shorthand getName for this application.
    • getDescription

      Optional<String> 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