|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.netty.channel.DefaultServerChannelConfig
org.jboss.netty.channel.socket.DefaultServerSocketChannelConfig
public class DefaultServerSocketChannelConfig
The default ServerSocketChannelConfig
implementation.
Constructor Summary | |
---|---|
DefaultServerSocketChannelConfig(ServerSocket socket)
Creates a new instance. |
Method Summary | |
---|---|
int |
getBacklog()
Gets the backlog value to specify when the channel binds to a local address. |
int |
getReceiveBufferSize()
Gets the SO_RCVBUF option. |
boolean |
isReuseAddress()
Gets the SO_REUSEADDR option. |
void |
setBacklog(int backlog)
Sets the backlog value to specify when the channel binds to a local address. |
boolean |
setOption(String key,
Object value)
Sets an individual option. |
void |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
Sets the performance preferences as specified in ServerSocket.setPerformancePreferences(int, int, int) . |
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the SO_RCVBUF option. |
void |
setReuseAddress(boolean reuseAddress)
Sets the SO_REUSEADDR option. |
Methods inherited from class org.jboss.netty.channel.DefaultServerChannelConfig |
---|
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.netty.channel.ChannelConfig |
---|
getBufferFactory, getConnectTimeoutMillis, getPipelineFactory, setBufferFactory, setConnectTimeoutMillis, setOptions, setPipelineFactory |
Constructor Detail |
---|
public DefaultServerSocketChannelConfig(ServerSocket socket)
Method Detail |
---|
public boolean setOption(String key, Object value)
DefaultServerChannelConfig
setOption
in interface ChannelConfig
setOption
in class DefaultServerChannelConfig
true
if and only if the property has been setpublic boolean isReuseAddress()
ServerSocketChannelConfig
SO_REUSEADDR
option.
isReuseAddress
in interface ServerSocketChannelConfig
public void setReuseAddress(boolean reuseAddress)
ServerSocketChannelConfig
SO_REUSEADDR
option.
setReuseAddress
in interface ServerSocketChannelConfig
public int getReceiveBufferSize()
ServerSocketChannelConfig
SO_RCVBUF
option.
getReceiveBufferSize
in interface ServerSocketChannelConfig
public void setReceiveBufferSize(int receiveBufferSize)
ServerSocketChannelConfig
SO_RCVBUF
option.
setReceiveBufferSize
in interface ServerSocketChannelConfig
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
ServerSocketChannelConfig
ServerSocket.setPerformancePreferences(int, int, int)
.
setPerformancePreferences
in interface ServerSocketChannelConfig
public int getBacklog()
ServerSocketChannelConfig
getBacklog
in interface ServerSocketChannelConfig
public void setBacklog(int backlog)
ServerSocketChannelConfig
setBacklog
in interface ServerSocketChannelConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |