org.littleshoot.mina.transport.socket.nio
Class DatagramAcceptor
java.lang.Object
org.littleshoot.mina.common.support.DelegatedIoAcceptor
org.littleshoot.mina.transport.socket.nio.DatagramAcceptor
- All Implemented Interfaces:
- IoAcceptor, IoService
public class DatagramAcceptor
- extends DelegatedIoAcceptor
IoAcceptor for datagram transport (UDP/IP).
- Version:
- $Rev: 587373 $, $Date: 2007-10-23 11:54:05 +0900 (Tue, 23 Oct 2007) $
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
| Methods inherited from class org.littleshoot.mina.common.support.DelegatedIoAcceptor |
addListener, bind, bind, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, init, isManaged, newSession, removeListener, setFilterChainBuilder, unbind, unbindAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatagramAcceptor
public DatagramAcceptor()
- Creates a new instance using a NewThreadExecutor
DatagramAcceptor
public DatagramAcceptor(Executor executor)
- Creates a new instance.
- Parameters:
executor - Executor to use for launching threads
getDefaultConfig
public DatagramAcceptorConfig getDefaultConfig()
- Description copied from interface:
IoService
- Returns the default configuration which is used when you didn't specify
any configuration.
- Specified by:
getDefaultConfig in interface IoService- Overrides:
getDefaultConfig in class DelegatedIoAcceptor
setDefaultConfig
public void setDefaultConfig(DatagramAcceptorConfig defaultConfig)
- Sets the config this acceptor will use by default.
- Parameters:
defaultConfig - the default config.
- Throws:
NullPointerException - if the specified value is null.
Copyright © 2011-2013 LittleShoot. All Rights Reserved.