public final class InetServerConfig
extends org.opendof.core.transport.ServerConfig
| Modifier and Type | Field and Description |
|---|---|
static boolean |
BLOCKING_DEFAULT |
| Constructor and Description |
|---|
InetServerConfig()
Construct default configuration that is not blocking, does not log connections.
|
InetServerConfig(boolean isBlocking,
boolean isLogConnections)
Construct using specified configuration parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends org.opendof.core.transport.Transport> |
getTransport() |
boolean |
isBlocking()
Return whether or not blocking IO is configured.
|
boolean |
isLogConnections()
Return whether or not connection logging is configured.
|
public InetServerConfig()
public InetServerConfig(boolean isBlocking,
boolean isLogConnections)
isBlocking - Whether or not the server should use blocking IO.
With blocking IO a thread is created per server connect accept.isLogConnections - Whether or not the server should log connections.public boolean isBlocking()
public boolean isLogConnections()
public java.lang.Class<? extends org.opendof.core.transport.Transport> getTransport()
getTransport in class org.opendof.core.transport.ServerConfig