public interface DatagramAcceptor extends IoAcceptor
IoAcceptor
for datagram transport (UDP/IP).Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getDefaultLocalAddress()
Returns a
Set of the local InetSocketAddress which are bound currently. |
InetSocketAddress |
getLocalAddress()
Returns the local InetSocketAddress which is bound currently.
|
DatagramSessionConfig |
getSessionConfig()
Returns the default Datagram configuration of the new
IoSession s
created by this service. |
IoSessionRecycler |
getSessionRecycler()
Returns the
IoSessionRecycler for this service. |
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, unbind
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, getTransportMetadata, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
InetSocketAddress getLocalAddress()
IoAcceptor.getLocalAddress()
method.getLocalAddress
in interface IoAcceptor
InetSocketAddress getDefaultLocalAddress()
Set
of the local InetSocketAddress which are bound currently.
This method overrides the IoAcceptor.getDefaultLocalAddress()
method.getDefaultLocalAddress
in interface IoAcceptor
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()
method.IoSessionRecycler getSessionRecycler()
IoSessionRecycler
for this service.void setSessionRecycler(IoSessionRecycler sessionRecycler)
IoSessionRecycler
for this service.sessionRecycler
- null to use the default recyclerDatagramSessionConfig getSessionConfig()
IoSession
s
created by this service.getSessionConfig
in interface IoService
Copyright © 2004–2014 Apache MINA Project. All rights reserved.