public static class DataChannelFactory.ConnectOptions extends Object
| Constructor and Description |
|---|
ConnectOptions()
Creates a base set of connection options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBlocking()
Gets the blocking mode option for the connection.
|
int |
getOpenTimeout()
Gets the connection open timeout value for the connection.
|
int |
getReadTimeout()
Gets the read timeout value for the connection.
|
int |
getReceiveBufferSize()
Gets the connection receive buffer size for the connection.
|
boolean |
getReuseAddr()
Gets the reuseAddr option for the connection.
|
boolean |
getTcpNoDelay()
Gets the tcpNoDelay option for the connection.
|
DataChannelFactory.ConnectOptions |
setBlocking(boolean blocking)
Sets the blocking mode option for the connection.
|
DataChannelFactory.ConnectOptions |
setOpenTimeout(int timeout)
Sets the connection open timeout value for the connection.
|
DataChannelFactory.ConnectOptions |
setReadTimeout(int timeout)
Sets the read timeout value for the connection.
|
DataChannelFactory.ConnectOptions |
setReceiveBufferSize(int rcvBufferSize)
Sets the connection receive buffer size for the connection.
|
DataChannelFactory.ConnectOptions |
setReuseAddr(boolean reuseAddr)
Sets the reuseAddr option for the connection.
|
DataChannelFactory.ConnectOptions |
setTcpNoDelay(boolean tcpNoDelay)
Sets the tcpNoDelay option for the connection.
|
String |
toString()
Generates a String representation of the object.
|
public ConnectOptions()
tcpNoDelay = false receiveBufferSize = 0 openTimeout = 0 readTimeout = 0 blocking = true reuseAddr = false
public final DataChannelFactory.ConnectOptions setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay - if true, disable the Nagle algorithm for delayed
transmissions on connectionpublic final boolean getTcpNoDelay()
public final DataChannelFactory.ConnectOptions setReceiveBufferSize(int rcvBufferSize)
rcvBufferSize - the desired size of the receive buffer, or
0 to use system defaults.public final int getReceiveBufferSize()
public final DataChannelFactory.ConnectOptions setOpenTimeout(int timeout)
timeout - the desired timeout value for connection initiation
in milliseconds, or 0 if system defaults should be usedpublic final int getOpenTimeout()
public final DataChannelFactory.ConnectOptions setReadTimeout(int timeout)
timeout - the desired timeout value for read operations in
milliseconds, or 0 if system defaults should be usedpublic final int getReadTimeout()
public final DataChannelFactory.ConnectOptions setBlocking(boolean blocking)
blocking - if true, the connection will use blocking mode IOpublic final boolean getBlocking()
public final DataChannelFactory.ConnectOptions setReuseAddr(boolean reuseAddr)
reuseAddr - if true, enable the SO_REUSEADDR option on the
underlying socketpublic final boolean getReuseAddr()
Copyright © 2024. All rights reserved.