public interface SocketAcceptor extends IoAcceptor
IoAcceptor for socket transport (TCP/IP). This class
handles incoming TCP/IP based socket connections.| Modifier and Type | Method and Description |
|---|---|
int |
getBacklog()
Returns the size of the backlog.
|
InetSocketAddress |
getDefaultLocalAddress()
Returns a
Set of the local InetSocketAddress which are bound currently. |
InetSocketAddress |
getLocalAddress()
Returns the local InetSocketAddress which is bound currently.
|
SocketSessionConfig |
getSessionConfig()
Returns the default configuration of the new SocketSessions created by
this acceptor service.
|
boolean |
isReuseAddress() |
void |
setBacklog(int backlog)
Sets the size of the backlog.
|
void |
setDefaultLocalAddress(InetSocketAddress localAddress)
Sets the default local InetSocketAddress to bind when no argument is specified in
IoAcceptor.bind() method. |
void |
setReuseAddress(boolean reuseAddress) |
bind, bind, bind, bind, bind, getDefaultLocalAddresses, getLocalAddresses, isCloseOnDeactivation, newSession, setCloseOnDeactivation, setDefaultLocalAddress, setDefaultLocalAddresses, setDefaultLocalAddresses, setDefaultLocalAddresses, unbind, unbind, unbind, unbindaddListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, getTransportMetadata, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactoryInetSocketAddress getLocalAddress()
IoAcceptor.getLocalAddress() method.getLocalAddress in interface IoAcceptorInetSocketAddress getDefaultLocalAddress()
Set of the local InetSocketAddress which are bound currently.
This method overrides the IoAcceptor.getDefaultLocalAddress() method.getDefaultLocalAddress in interface IoAcceptorvoid setDefaultLocalAddress(InetSocketAddress localAddress)
IoAcceptor.bind() method. Please note that the default will not be used
if any local InetSocketAddress is specified.
This method overrides the IoAcceptor.setDefaultLocalAddress(java.net.SocketAddress) method.boolean isReuseAddress()
ServerSocket.getReuseAddress()void setReuseAddress(boolean reuseAddress)
ServerSocket.setReuseAddress(boolean)int getBacklog()
void setBacklog(int backlog)
SocketSessionConfig getSessionConfig()
getSessionConfig in interface IoServiceCopyright © 2004–2017 Apache MINA Project. All rights reserved.