Annotation Type ServerConfig


@Retention(CLASS) @Target(TYPE) public @interface ServerConfig

Listener settings, compiled in.

Each attribute is the cn1.server.* key named beside it, and sets that key's value at the bottom of the configuration, so PORT, a properties file or the environment still override it. An attribute left at its default sets nothing.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    cn1.server.backlog: the listen backlog.
    int
    cn1.server.port.
    int
    cn1.server.shutdownTimeoutMillis: how long a stop waits for the requests in flight.
    int
    cn1.server.workers: the request thread pool.
  • Element Details

    • port

      int port
      cn1.server.port.
      Default:
      -1
    • workers

      int workers
      cn1.server.workers: the request thread pool.
      Default:
      -1
    • backlog

      int backlog
      cn1.server.backlog: the listen backlog.
      Default:
      -1
    • shutdownTimeoutMillis

      int shutdownTimeoutMillis
      cn1.server.shutdownTimeoutMillis: how long a stop waits for the requests in flight.
      Default:
      -1