|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface SocketChannelConfig
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 |
方法详细信息 |
---|
boolean isTcpNoDelay()
SO_TCPNODELAY
属性.
void setTcpNoDelay(boolean tcpNoDelay)
SO_TCPNODELAY
属性.
int getSoLinger()
SO_LINGER
属性.
void setSoLinger(int soLinger)
SO_LINGER
属性.
int getSendBufferSize()
SO_SNDBUF
属性.
void setSendBufferSize(int sendBufferSize)
SO_SNDBUF
属性.
int getReceiveBufferSize()
SO_RCVBUF
属性.
void setReceiveBufferSize(int receiveBufferSize)
SO_RCVBUF
属性.
boolean isKeepAlive()
SO_KEEPALIVE
属性.
void setKeepAlive(boolean keepAlive)
SO_KEEPALIVE
属性.
int getTrafficClass()
void setTrafficClass(int trafficClass)
Socket.setTrafficClass(int)
所说设置traffic class.
boolean isReuseAddress()
SO_REUSEADDR
属性.
void setReuseAddress(boolean reuseAddress)
SO_REUSEADDR
属性.
void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
Socket.setPerformancePreferences(int, int, int)
所说设置性能优先权.
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |