Interface ServerConfig


@ConfigBean(value="server", levelType=ROOT, drivesActivation=true) public interface ServerConfig
Server configuration bean. There is a generated DefaultServerConfig implementing this type, that can be used to create an instance manually through a builder, or using configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    Host of the default socket.
    int
    Port of the default socket.
  • Method Details

    • host

      String host()
      Host of the default socket. Defaults to all host addresses (0.0.0.0).
      Returns:
      host address to listen on (for the default socket)
    • port

      int port()
      Port of the default socket. If configured to 0 (the default), server starts on a random port.
      Returns:
      port to listen on (for the default socket)