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

所有超级接口:
ChannelConfig
所有已知实现类:
DefaultServerSocketChannelConfig

public interface ServerSocketChannelConfig
extends ChannelConfig

ServerSocketChannelChannelConfig.

有效属性

ChannelConfig还提供其他的属性,ServerSocketChannelConfig有以下属性:
名称 关联setter方法
"backlog" setBacklog(int)
"reuseAddress" setReuseAddress(boolean)
"receiveBufferSize" setReceiveBufferSize(int)


方法摘要
 int getBacklog()
          返回当Channel绑定到本地地址时指定的backlog值.
 int getReceiveBufferSize()
          返回 SO_RCVBUF 属性.
 boolean isReuseAddress()
          返回 SO_REUSEADDR 属性.
 void setBacklog(int backlog)
          设置当Channel绑定到本地地址时指定的backlog值.
 void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
          如ServerSocket.setPerformancePreferences(int, int, int)一样设置性能优先权.
 void setReceiveBufferSize(int receiveBufferSize)
          设置 SO_RCVBUF 属性.
 void setReuseAddress(boolean reuseAddress)
          设置 SO_REUSEADDR 属性.
 
从接口 org.jboss.netty.channel.ChannelConfig 继承的方法
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOption, setOptions, setPipelineFactory
 

方法详细信息

getBacklog

int getBacklog()
返回当Channel绑定到本地地址时指定的backlog值.


setBacklog

void setBacklog(int backlog)
设置当Channel绑定到本地地址时指定的backlog值.


isReuseAddress

boolean isReuseAddress()
返回 SO_REUSEADDR 属性.


setReuseAddress

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


getReceiveBufferSize

int getReceiveBufferSize()
返回 SO_RCVBUF 属性.


setReceiveBufferSize

void setReceiveBufferSize(int receiveBufferSize)
设置 SO_RCVBUF 属性.


setPerformancePreferences

void setPerformancePreferences(int connectionTime,
                               int latency,
                               int bandwidth)
ServerSocket.setPerformancePreferences(int, int, int)一样设置性能优先权.