public interface SocketAcceptor extends SocketService, 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.
|
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.
|
boolean |
isReuseAddress() |
void |
setBacklog(int backlog)
Sets the size of the backlog.
|
void |
setDefaultLocalAddress(java.net.InetSocketAddress localAddress) |
void |
setReuseAddress(boolean reuseAddress) |
getSessionConfig
bind, bind, bind, bind, getDefaultLocalAddresses, getLocalAddresses, isCloseOnDeactivation, newSession, setCloseOnDeactivation, setDefaultLocalAddress, setDefaultLocalAddresses, setDefaultLocalAddresses, setDefaultLocalAddresses, unbind, unbind, unbind, unbind
addListener, broadcast, dispose, getActivationTime, getBothIdleCount, getBothIdleTime, getBothIdleTimeInMillis, getCumulativeManagedSessionCount, getFilterChain, getFilterChainBuilder, getHandler, getIdleCount, getIdleTime, getIdleTimeInMillis, getLargestManagedSessionCount, getLargestReadBytesThroughput, getLargestReadMessagesThroughput, getLargestWrittenBytesThroughput, getLargestWrittenMessagesThroughput, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getManagedSessionCount, getManagedSessions, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReaderIdleTime, getReaderIdleTimeInMillis, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getTransportMetadata, getWriterIdleCount, getWriterIdleTime, getWriterIdleTimeInMillis, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, isActive, isBothIdle, isDisposed, isDisposing, isIdle, isReaderIdle, isWriterIdle, removeListener, setBothIdleTime, setFilterChainBuilder, setHandler, setIdleTime, setReaderIdleTime, setSessionDataStructureFactory, setThroughputCalculationInterval, setWriterIdleTime
java.net.InetSocketAddress getLocalAddress()
IoAcceptor
getLocalAddress
in interface IoAcceptor
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
in interface IoAcceptor
void setDefaultLocalAddress(java.net.InetSocketAddress localAddress)
boolean isReuseAddress()
ServerSocket.getReuseAddress()
void setReuseAddress(boolean reuseAddress)
ServerSocket.setReuseAddress(boolean)
int getBacklog()
void setBacklog(int backlog)
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.