public static class SocketOptionsProperties.Builder extends Object
| Constructor and Description |
|---|
SocketOptionsProperties.Builder()
Create a builder.
|
| Modifier and Type | Method and Description |
|---|---|
SocketOptionsProperties |
build()
Build the properties object.
|
SocketOptionsProperties.Builder |
receiveBufferSize(int receiveBufferSize)
Set the receive buffer size.
|
SocketOptionsProperties.Builder |
sendBufferSize(int sendBufferSize)
Set the send buffer size.
|
public SocketOptionsProperties.Builder()
public SocketOptionsProperties.Builder sendBufferSize(int sendBufferSize)
On Unix-like systems this will set the SO_SNDBUF socket option.
The OS will do its own validation of this option, the used value can differ significantly.
sendBufferSize - the send buffer sizepublic SocketOptionsProperties.Builder receiveBufferSize(int receiveBufferSize)
On Unix-like systems this will set the SO_RCVBUF socket option.
The OS will do its own validation of this option, the used value can differ significantly.
receiveBufferSize - the receive buffer sizepublic SocketOptionsProperties build()
SocketOptionsProperties object.Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.