public class ChronicleSocketChannelBuilder extends Object
| Constructor and Description |
|---|
ChronicleSocketChannelBuilder(@NotNull InetSocketAddress socketAddress) |
| Modifier and Type | Method and Description |
|---|---|
ChronicleSocketChannelBuilder |
localBinding(InetSocketAddress localBinding)
Set the local socket to bind to
|
@Nullable ChronicleSocketChannel |
open()
Open a socket channel with the builder's current settings
|
ChronicleSocketChannelBuilder |
socketConnectionTimeoutMs(int socketConnectionTimeoutMs)
Set the socket connection timeout
|
ChronicleSocketChannelBuilder |
tcpBufferSize(int tcpBufferSize)
Set the TCP buffer size
|
ChronicleSocketChannelBuilder |
tcpNoDelay(boolean tcpNoDelay)
Set whether to enable/disable Nagle's algorithm for this socket
|
public ChronicleSocketChannelBuilder(@NotNull
@NotNull InetSocketAddress socketAddress)
public ChronicleSocketChannelBuilder tcpBufferSize(int tcpBufferSize)
tcpBufferSize - The TCP buffer size in bytespublic ChronicleSocketChannelBuilder socketConnectionTimeoutMs(int socketConnectionTimeoutMs)
socketConnectionTimeoutMs - the socket connection timeout in millisecondspublic ChronicleSocketChannelBuilder tcpNoDelay(boolean tcpNoDelay)
tcpNoDelay - public ChronicleSocketChannelBuilder localBinding(InetSocketAddress localBinding)
localBinding - The local socket to bind to, or null to not bind to any local socket@Nullable public @Nullable ChronicleSocketChannel open() throws IOException
IOException - if something goes wrong opening the channelCopyright © 2023. All rights reserved.