ChannelConfig for a ServerSocketChannel.
ChannelConfig,
ServerSocketChannelConfig allows the following options in the
option map:
| Name | Associated setter method |
|---|---|
"backlog" | setBacklog(int) |
"reuseAddress" | setReuseAddress(boolean) |
"receiveBufferSize" | setReceiveBufferSize(int) |
| getBacklog | back to summary |
|---|---|
| public int getBacklog() Gets the backlog value to specify when the channel binds to a local address. | |
| getReceiveBufferSize | back to summary |
|---|---|
| public int getReceiveBufferSize() Gets the | |
| isReuseAddress | back to summary |
|---|---|
| public boolean isReuseAddress() Gets the | |
| setAllocator | back to summary |
|---|---|
| public ServerSocketChannelConfig setAllocator(ByteBufAllocator allocator) Redeclares io. Doc from io. Set the
| |
| setAutoRead | back to summary |
|---|---|
| public ServerSocketChannelConfig setAutoRead(boolean autoRead) Redeclares io. Doc from io. Sets if
| |
| setBacklog | back to summary |
|---|---|
| public ServerSocketChannelConfig setBacklog(int backlog) Sets the backlog value to specify when the channel binds to a local address. | |
| setConnectTimeoutMillis | back to summary |
|---|---|
| public ServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis) Redeclares io. Doc from io. Sets the connect timeout of the channel in milliseconds. If the
| |
| setMaxMessagesPerRead | back to summary |
|---|---|
| public ServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead) Redeclares io. Deprecated
| |
| setMessageSizeEstimator | back to summary |
|---|---|
| public ServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator) Redeclares io. Doc from io. Set the
| |
| setPerformancePreferences | back to summary |
|---|---|
| public ServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets the performance preferences as specified in
| |
| setReceiveBufferSize | back to summary |
|---|---|
| public ServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize) Gets the | |
| setRecvByteBufAllocator | back to summary |
|---|---|
| public ServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator) Redeclares io. Doc from io. Set the
| |
| setReuseAddress | back to summary |
|---|---|
| public ServerSocketChannelConfig setReuseAddress(boolean reuseAddress) Sets the | |
| setWriteBufferHighWaterMark | back to summary |
|---|---|
| public ServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Redeclares io. Doc from io.
Sets the high water mark of the write buffer. If the number of bytes
queued in the write buffer exceeds this value,
| |
| setWriteBufferLowWaterMark | back to summary |
|---|---|
| public ServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Redeclares io. Doc from io.
Sets the low water mark of the write buffer. Once the number of bytes
queued in the write buffer exceeded the
high water mark and then
dropped down below this value,
| |
| setWriteBufferWaterMark | back to summary |
|---|---|
| public ServerSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) Redeclares io. Doc from io. Set the
| |
| setWriteSpinCount | back to summary |
|---|---|
| public ServerSocketChannelConfig setWriteSpinCount(int writeSpinCount) Redeclares io. Doc from io. Sets the maximum loop count for a write operation until
| |