org.apache.mina.transport.socket.nio

Class SocketAcceptorConfig

Implemented Interfaces:
Cloneable, IoAcceptorConfig, IoServiceConfig

public class SocketAcceptorConfig
extends BaseIoAcceptorConfig

An IoAcceptorConfig for SocketAcceptor.

Constructor Summary

SocketAcceptorConfig()
Creates a new instance.

Method Summary

int
getBacklog()
SocketSessionConfig
getSessionConfig()
boolean
isReuseAddress()
void
setBacklog(int backlog)
void
setReuseAddress(boolean reuseAddress)

Methods inherited from class org.apache.mina.common.support.BaseIoAcceptorConfig

isDisconnectOnUnbind, setDisconnectOnUnbind

Methods inherited from class org.apache.mina.common.support.BaseIoServiceConfig

Object clone, getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel

Constructor Details

SocketAcceptorConfig

public SocketAcceptorConfig()
Creates a new instance.

Method Details

getBacklog

public int getBacklog()

getSessionConfig

public SocketSessionConfig getSessionConfig()
Specified by:
getSessionConfig in interface IoServiceConfig

isReuseAddress

public boolean isReuseAddress()
See Also:
ServerSocket.getReuseAddress()

setBacklog

public void setBacklog(int backlog)

setReuseAddress

public void setReuseAddress(boolean reuseAddress)
See Also:
ServerSocket.setReuseAddress(boolean)