org.jboss.netty.channel.socket
Interface ServerSocketChannelConfig

All Superinterfaces:
ChannelConfig
All Known Implementing Classes:
DefaultServerSocketChannelConfig

public interface ServerSocketChannelConfig
extends ChannelConfig

A ChannelConfig for a ServerSocketChannel.

Available options

In addition to the options provided by ChannelConfig, ServerSocketChannelConfig allows the following options in the option map:
NameAssociated setter method
"backlog"setBacklog(int)
"reuseAddress"setReuseAddress(boolean)
"receiveBufferSize"setReceiveBufferSize(int)

Version:
$Rev: 313 $, $Date: 2008-09-24 21:01:50 +0900 (Wed, 24 Sep 2008) $
Author:
The Netty Project (netty-dev@lists.jboss.org), Trustin Lee (tlee@redhat.com)

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.
 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 interface org.jboss.netty.channel.ChannelConfig
getConnectTimeoutMillis, getPipelineFactory, getWriteTimeoutMillis, setConnectTimeoutMillis, setOptions, setPipelineFactory, setWriteTimeoutMillis
 

Method Detail

getBacklog

int getBacklog()
Gets the backlog value to specify when the channel binds to a local address.


setBacklog

void setBacklog(int backlog)
Sets the backlog value to specify when the channel binds to a local address.


isReuseAddress

boolean isReuseAddress()
Gets the SO_REUSEADDR option.


setReuseAddress

void setReuseAddress(boolean reuseAddress)
Sets the SO_REUSEADDR option.


getReceiveBufferSize

int getReceiveBufferSize()
Gets the SO_RCVBUF option.


setReceiveBufferSize

void setReceiveBufferSize(int receiveBufferSize)
Sets the SO_RCVBUF option.


setPerformancePreferences

void setPerformancePreferences(int connectionTime,
                               int latency,
                               int bandwidth)
Sets the performance preferences as specified in ServerSocket.setPerformancePreferences(int, int, int).



Copyright © 2008-Present JBoss - a division of Red Hat. All Rights Reserved.