Package net.dona.doip.server
Class DoipServerConfig
- java.lang.Object
-
- net.dona.doip.server.DoipServerConfig
-
public class DoipServerConfig extends java.lang.ObjectConfiguration for aDoipServer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDoipServerConfig.TlsConfigTLS configuration for aDoipServer.
-
Field Summary
Fields Modifier and Type Field Description intbacklogBacklog to be used for the TCP listener (defaults to 50).java.lang.StringlistenAddressIP address to which to bind the listener.intmaxIdleTimeMillisIdle time in ms for an open DOIP connection while waiting for another request (defaults to 5 minutes).intnumThreadsNumber of request-processing threads (defaults to 200).intportPort to which to bind the listener.java.lang.StringprocessorClassClass name of aDoipProcessor, which will be automatically instantiated, initialized, and later shut down by aDoipServerwhen constructed usingDoipServer(DoipServerConfig).com.google.gson.JsonObjectprocessorConfigJSON used to initialize an automatically constructedDoipProcessor(see {processorClass).DoipServerConfig.TlsConfigtlsConfigTLS configuration for aDoipServer.
-
Constructor Summary
Constructors Constructor Description DoipServerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
listenAddress
public java.lang.String listenAddress
IP address 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 java.lang.String processorClass
Class name of aDoipProcessor, which will be automatically instantiated, initialized, and later shut down by aDoipServerwhen constructed usingDoipServer(DoipServerConfig).
-
processorConfig
public com.google.gson.JsonObject processorConfig
JSON used to initialize an automatically constructedDoipProcessor(see {processorClass).
-
tlsConfig
public DoipServerConfig.TlsConfig tlsConfig
TLS configuration for aDoipServer.
-
-