| Modifier and Type | Field and Description |
|---|---|
int |
selectorId
The id of the selector used by this client.
|
ConsumerX<SocketChannel> |
socketConf
Action to configure each newly created socket.
|
| Constructor and Description |
|---|
Conf()
Create a Conf with default values.
|
public int selectorId
default: a random value from [0, 1, ... N-1] where N is the number of processors
Note that each TcpClient uses only one selector.
See also TcpServer.Conf.selectorIds
public ConsumerX<SocketChannel> socketConf
default action:
enable TCP_NODELAY
App may want to configure more options on each socket. The SocketChannel is in non-blocking model; it must not be changed to blocking mode.