public final class SocketSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
DEF_BOOL |
protected static byte |
FALSE |
protected static byte |
TRUE |
protected static final byte DEF_BOOL
protected static final byte TRUE
protected static final byte FALSE
public static SocketSettings create()
public SocketSettings withSendBufferSize(MemSize sendBufferSize)
public SocketSettings withReceiveBufferSize(MemSize receiveBufferSize)
public SocketSettings withKeepAlive(boolean keepAlive)
public SocketSettings withReuseAddress(boolean reuseAddress)
public SocketSettings withTcpNoDelay(boolean tcpNoDelay)
public SocketSettings withImplReadTimeout(Duration implReadTimeout)
public SocketSettings withImplWriteTimeout(Duration implWriteTimeout)
public SocketSettings withImplReadSize(MemSize implReadSize)
public SocketSettings withImplWriteSize(MemSize implWriteSize)
public void applySettings(SocketChannel channel) throws IOException
IOExceptionpublic boolean hasSendBufferSize()
public MemSize getSendBufferSize()
public boolean hasReceiveBufferSize()
public MemSize getReceiveBufferSize()
public boolean hasKeepAlive()
public boolean getKeepAlive()
public boolean hasReuseAddress()
public boolean getReuseAddress()
public boolean hasTcpNoDelay()
public boolean getTcpNoDelay()
public boolean hasImplReadTimeout()
public Duration getImplReadTimeout()
public boolean hasImplWriteTimeout()
public Duration getImplWriteTimeout()
public boolean hasImplReadSize()
public MemSize getImplReadSize()
public boolean hasImplWriteSize()
public MemSize getImplWriteSize()
Copyright © 2019. All rights reserved.