public final class InetConnectionConfig
extends org.opendof.core.transport.ConnectionConfig
| Modifier and Type | Field and Description |
|---|---|
static boolean |
BLOCKING_DEFAULT |
| Constructor and Description |
|---|
InetConnectionConfig()
Construct default configuration that is not blocking.
|
InetConnectionConfig(boolean isBlocking)
Construct using specified configuration parameter.
|
| Modifier and Type | Method and Description |
|---|---|
static InetConnectionConfig |
getInstance(boolean isBlocking) |
java.lang.Class<? extends org.opendof.core.transport.Transport> |
getTransport() |
boolean |
isBlocking()
Return whether or not blocking IO is configured.
|
public InetConnectionConfig()
public InetConnectionConfig(boolean isBlocking)
isBlocking - Whether or not the connection should use blocking IO.
With blocking IO a thread is created for the connection.public boolean isBlocking()
public java.lang.Class<? extends org.opendof.core.transport.Transport> getTransport()
getTransport in class org.opendof.core.transport.ConnectionConfigpublic static InetConnectionConfig getInstance(boolean isBlocking)