|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatagramAcceptor
IoAcceptor
for datagram transport (UDP/IP).
Method Summary | |
---|---|
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. |
IoSessionRecycler |
getSessionRecycler()
Returns the IoSessionRecycler for this service. |
void |
setDefaultLocalAddress(java.net.InetSocketAddress localAddress)
|
void |
setSessionRecycler(IoSessionRecycler sessionRecycler)
Sets the IoSessionRecycler for this service. |
Methods inherited from interface org.apache.mina.core.service.IoAcceptor |
---|
bind, bind, bind, bind, getDefaultLocalAddresses, getLocalAddresses, isCloseOnDeactivation, newSession, setCloseOnDeactivation, setDefaultLocalAddress, setDefaultLocalAddresses, setDefaultLocalAddresses, setDefaultLocalAddresses, unbind, unbind, unbind, unbind |
Methods inherited from interface org.apache.mina.core.service.IoService |
---|
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionConfig, getSessionDataStructureFactory, getStatistics, getTransportMetadata, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory |
Method Detail |
---|
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)
IoSessionRecycler getSessionRecycler()
IoSessionRecycler
for this service.
void setSessionRecycler(IoSessionRecycler sessionRecycler)
IoSessionRecycler
for this service.
sessionRecycler
- null to use the default recycler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |