SocketChannelConfig Type — netty Architecture
Architecture documentation for the SocketChannelConfig type/interface in SocketChannelConfig.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7a199a10_b923_d531_bdd9_5db9f60b7b0d["SocketChannelConfig"] d386891a_0512_a689_785d_ae450bc80da2["SocketChannelConfig.java"] 7a199a10_b923_d531_bdd9_5db9f60b7b0d -->|defined in| d386891a_0512_a689_785d_ae450bc80da2 style 7a199a10_b923_d531_bdd9_5db9f60b7b0d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/SocketChannelConfig.java lines 58–172
public interface SocketChannelConfig extends DuplexChannelConfig {
/**
* Gets the {@link StandardSocketOptions#TCP_NODELAY} option. Please note that the default value of this option
* is {@code true} unlike the operating system default ({@code false}). However, for some buggy platforms, such as
* Android, that shows erratic behavior with Nagle's algorithm disabled, the default value remains to be
* {@code false}.
*/
boolean isTcpNoDelay();
/**
* Sets the {@link StandardSocketOptions#TCP_NODELAY} option. Please note that the default value of this option
* is {@code true} unlike the operating system default ({@code false}). However, for some buggy platforms, such as
* Android, that shows erratic behavior with Nagle's algorithm disabled, the default value remains to be
* {@code false}.
*/
SocketChannelConfig setTcpNoDelay(boolean tcpNoDelay);
/**
* Gets the {@link StandardSocketOptions#SO_LINGER} option.
*/
int getSoLinger();
/**
* Sets the {@link StandardSocketOptions#SO_LINGER} option.
*/
SocketChannelConfig setSoLinger(int soLinger);
/**
* Gets the {@link StandardSocketOptions#SO_SNDBUF} option.
*/
int getSendBufferSize();
/**
* Sets the {@link StandardSocketOptions#SO_SNDBUF} option.
*/
SocketChannelConfig setSendBufferSize(int sendBufferSize);
/**
* Gets the {@link StandardSocketOptions#SO_RCVBUF} option.
*/
int getReceiveBufferSize();
/**
* Sets the {@link StandardSocketOptions#SO_RCVBUF} option.
*/
SocketChannelConfig setReceiveBufferSize(int receiveBufferSize);
/**
* Gets the {@link StandardSocketOptions#SO_KEEPALIVE} option.
*/
boolean isKeepAlive();
/**
* Sets the {@link StandardSocketOptions#SO_KEEPALIVE} option.
*/
SocketChannelConfig setKeepAlive(boolean keepAlive);
/**
* Gets the {@link StandardSocketOptions#IP_TOS} option.
*/
int getTrafficClass();
/**
* Sets the {@link StandardSocketOptions#IP_TOS} option.
*/
SocketChannelConfig setTrafficClass(int trafficClass);
/**
* Gets the {@link StandardSocketOptions#SO_REUSEADDR} option.
*/
boolean isReuseAddress();
/**
* Sets the {@link StandardSocketOptions#SO_REUSEADDR} option.
*/
SocketChannelConfig setReuseAddress(boolean reuseAddress);
/**
* Sets the performance preferences as specified in
* {@link Socket#setPerformancePreferences(int, int, int)}.
Source
Frequently Asked Questions
What is the SocketChannelConfig type?
SocketChannelConfig is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/SocketChannelConfig.java.
Where is SocketChannelConfig defined?
SocketChannelConfig is defined in transport/src/main/java/io/netty/channel/socket/SocketChannelConfig.java at line 58.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free