org.jboss.netty.channel.socket
接口 SocketChannelConfig

所有超级接口:
ChannelConfig
所有已知子接口:
NioSocketChannelConfig
所有已知实现类:
DefaultSocketChannelConfig, HttpTunnelingSocketChannelConfig

public interface SocketChannelConfig
extends ChannelConfig

SocketChannelChannelConfig.

有效属性

ChannelConfig还提供其他的属性,SocketChannelConfig有以下属性:
名称 关联的setter方法
"keepAlive" setKeepAlive(boolean)
"reuseAddress" setReuseAddress(boolean)
"soLinger" setSoLinger(int)
"tcpNoDelay" setTcpNoDelay(boolean)
"receiveBufferSize" setReceiveBufferSize(int)
"sendBufferSize" setSendBufferSize(int)
"trafficClass" setTrafficClass(int)


方法摘要
 int getReceiveBufferSize()
          返回 SO_RCVBUF 属性.
 int getSendBufferSize()
          返回 SO_SNDBUF 属性.
 int getSoLinger()
          返回 SO_LINGER 属性.
 int getTrafficClass()
          获得 traffic类.
 boolean isKeepAlive()
          返回 SO_KEEPALIVE 属性.
 boolean isReuseAddress()
          返回 SO_REUSEADDR 属性.
 boolean isTcpNoDelay()
          返回 SO_TCPNODELAY 属性.
 void setKeepAlive(boolean keepAlive)
          设置 SO_KEEPALIVE 属性.
 void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
          如Socket.setPerformancePreferences(int, int, int)所说设置性能优先权.
 void setReceiveBufferSize(int receiveBufferSize)
          返回 SO_RCVBUF 属性.
 void setReuseAddress(boolean reuseAddress)
          设置 SO_REUSEADDR 属性.
 void setSendBufferSize(int sendBufferSize)
          设置 SO_SNDBUF 属性.
 void setSoLinger(int soLinger)
          设置 SO_LINGER 属性.
 void setTcpNoDelay(boolean tcpNoDelay)
          设置 SO_TCPNODELAY 属性.
 void setTrafficClass(int trafficClass)
          如Socket.setTrafficClass(int)所说设置traffic class.
 
从接口 org.jboss.netty.channel.ChannelConfig 继承的方法
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOption, setOptions, setPipelineFactory
 

方法详细信息

isTcpNoDelay

boolean isTcpNoDelay()
返回 SO_TCPNODELAY 属性.


setTcpNoDelay

void setTcpNoDelay(boolean tcpNoDelay)
设置 SO_TCPNODELAY 属性.


getSoLinger

int getSoLinger()
返回 SO_LINGER 属性.


setSoLinger

void setSoLinger(int soLinger)
设置 SO_LINGER 属性.


getSendBufferSize

int getSendBufferSize()
返回 SO_SNDBUF 属性.


setSendBufferSize

void setSendBufferSize(int sendBufferSize)
设置 SO_SNDBUF 属性.


getReceiveBufferSize

int getReceiveBufferSize()
返回 SO_RCVBUF 属性.


setReceiveBufferSize

void setReceiveBufferSize(int receiveBufferSize)
返回 SO_RCVBUF 属性.


isKeepAlive

boolean isKeepAlive()
返回 SO_KEEPALIVE 属性.


setKeepAlive

void setKeepAlive(boolean keepAlive)
设置 SO_KEEPALIVE 属性.


getTrafficClass

int getTrafficClass()
获得 traffic类.


setTrafficClass

void setTrafficClass(int trafficClass)
Socket.setTrafficClass(int)所说设置traffic class.


isReuseAddress

boolean isReuseAddress()
返回 SO_REUSEADDR 属性.


setReuseAddress

void setReuseAddress(boolean reuseAddress)
设置 SO_REUSEADDR 属性.


setPerformancePreferences

void setPerformancePreferences(int connectionTime,
                               int latency,
                               int bandwidth)
Socket.setPerformancePreferences(int, int, int)所说设置性能优先权.