public interface SocketAcceptor extends IoAcceptor
IoAcceptor
for socket transport (TCP/IP). This class
handles incoming TCP/IP based socket connections.限定符和类型 | 方法和说明 |
---|---|
int |
getBacklog() |
java.net.InetSocketAddress |
getDefaultLocalAddress()
Returns the default local address to bind when no argument is specified
in
IoAcceptor.bind() method. |
java.net.InetSocketAddress |
getLocalAddress()
Returns the local address which is bound currently.
|
SocketSessionConfig |
getSessionConfig() |
boolean |
isReuseAddress() |
void |
setBacklog(int backlog)
Sets the size of the backlog.
|
void |
setDefaultLocalAddress(java.net.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, unbind
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, getTransportMetadata, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
java.net.InetSocketAddress getLocalAddress()
IoAcceptor
getLocalAddress
在接口中 IoAcceptor
IoAcceptor.getLocalAddress()
method.java.net.InetSocketAddress getDefaultLocalAddress()
IoAcceptor
IoAcceptor.bind()
method. Please note that the default will not be
used if any local address is specified. If more than one address are
set, only one of them will be returned, but it's not necessarily the
firstly specified address in IoAcceptor.setDefaultLocalAddresses(List)
.getDefaultLocalAddress
在接口中 IoAcceptor
Set
of the local InetSocketAddress which are bound currently.
This method overrides the IoAcceptor.getDefaultLocalAddress()
method.void setDefaultLocalAddress(java.net.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.localAddress
- The local addressboolean isReuseAddress()
ServerSocket.getReuseAddress()
void setReuseAddress(boolean reuseAddress)
reuseAddress
- tells if the SO_REUSEADDR is to be enabledServerSocket.setReuseAddress(boolean)
int getBacklog()
void setBacklog(int backlog)
backlog
- The backlog's sizeSocketSessionConfig getSessionConfig()
getSessionConfig
在接口中 IoService