Package net.dona.doip.server
Class DoipServerConfig
java.lang.Object
net.dona.doip.server.DoipServerConfig
Configuration for a
DoipServer
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Logging configuration for aDoipServer
.static class
TLS configuration for aDoipServer
. -
Field Summary
FieldsModifier and TypeFieldDescriptionint
Backlog to be used for the TCP listener (defaults to 50).IP address to which to bind the listener.IP addresses to which to bind the listener.Logging configuration for aDoipServer
.int
Idle time in ms for an open DOIP connection while waiting for another request (defaults to 5 minutes).int
Number of request-processing threads (defaults to 200).int
Port to which to bind the listener.Class name of aDoipProcessor
, which will be automatically instantiated, initialized, and later shut down by aDoipServer
when constructed usingDoipServer(DoipServerConfig)
.com.google.gson.JsonObject
JSON used to initialize an automatically constructedDoipProcessor
(see {processorClass
).TLS configuration for aDoipServer
. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
listenAddress
IP address to which to bind the listener. -
listenAddresses
IP addresses to which to bind the listener. -
port
public int portPort to which to bind the listener. -
backlog
public int backlogBacklog to be used for the TCP listener (defaults to 50). -
maxIdleTimeMillis
public int maxIdleTimeMillisIdle time in ms for an open DOIP connection while waiting for another request (defaults to 5 minutes). -
numThreads
public int numThreadsNumber of request-processing threads (defaults to 200). -
processorClass
Class name of aDoipProcessor
, which will be automatically instantiated, initialized, and later shut down by aDoipServer
when constructed usingDoipServer(DoipServerConfig)
. -
processorConfig
public com.google.gson.JsonObject processorConfigJSON used to initialize an automatically constructedDoipProcessor
(see {processorClass
). -
logConfig
Logging configuration for aDoipServer
. -
tlsConfig
TLS configuration for aDoipServer
.
-
-
Constructor Details
-
DoipServerConfig
public DoipServerConfig()
-
-
Method Details