public interface DatagramAcceptor extends IoAcceptor
IoAcceptor for datagram transport (UDP/IP).| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getDefaultLocalAddress()
Returns the default local address to bind when no argument is specified
in
IoAcceptor.bind() method. |
InetSocketAddress |
getLocalAddress()
Returns the local address which is bound currently.
|
DatagramSessionConfig |
getSessionConfig() |
IoSessionRecycler |
getSessionRecycler() |
void |
setDefaultLocalAddress(InetSocketAddress localAddress)
Sets the default local InetSocketAddress to bind when no argument is specified in
IoAcceptor.bind() method. |
void |
setSessionRecycler(IoSessionRecycler sessionRecycler)
Sets the
IoSessionRecycler for this service. |
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()
IoAcceptorgetLocalAddress in interface IoAcceptorIoAcceptor.getLocalAddress() method.InetSocketAddress getDefaultLocalAddress()
IoAcceptorIoAcceptor.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 IoAcceptorSet of the local InetSocketAddress which are bound currently.
This method overrides the IoAcceptor.getDefaultLocalAddress() method.void 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.localAddress - The local addressIoSessionRecycler getSessionRecycler()
IoSessionRecycler for this service.void setSessionRecycler(IoSessionRecycler sessionRecycler)
IoSessionRecycler for this service.sessionRecycler - null to use the default recyclerDatagramSessionConfig getSessionConfig()
getSessionConfig in interface IoServiceIoSessions
created by this service.Copyright © 2004–2024 Apache MINA Project. All rights reserved.