Class DoipServerConfig

java.lang.Object
net.dona.doip.server.DoipServerConfig

public class DoipServerConfig extends Object
Configuration for a DoipServer.
  • Field Details

    • listenAddress

      public String listenAddress
      IP address to which to bind the listener.
    • listenAddresses

      public List<String> listenAddresses
      IP addresses to which to bind the listener.
    • port

      public int port
      Port to which to bind the listener.
    • backlog

      public int backlog
      Backlog to be used for the TCP listener (defaults to 50).
    • maxIdleTimeMillis

      public int maxIdleTimeMillis
      Idle time in ms for an open DOIP connection while waiting for another request (defaults to 5 minutes).
    • numThreads

      public int numThreads
      Number of request-processing threads (defaults to 200).
    • processorClass

      public String processorClass
      Class name of a DoipProcessor, which will be automatically instantiated, initialized, and later shut down by a DoipServer when constructed using DoipServer(DoipServerConfig).
    • processorConfig

      public com.google.gson.JsonObject processorConfig
      JSON used to initialize an automatically constructed DoipProcessor (see {processorClass).
    • logConfig

      public DoipServerConfig.LogConfig logConfig
      Logging configuration for a DoipServer.
    • tlsConfig

      public DoipServerConfig.TlsConfig tlsConfig
      TLS configuration for a DoipServer.
  • Constructor Details

    • DoipServerConfig

      public DoipServerConfig()
  • Method Details