org.apache.mina.transport.socket.nio
Class DatagramAcceptor

java.lang.Object
  extended byorg.apache.mina.common.support.DelegatedIoAcceptor
      extended byorg.apache.mina.transport.socket.nio.DatagramAcceptor
All Implemented Interfaces:
IoAcceptor, IoService

public class DatagramAcceptor
extends org.apache.mina.common.support.DelegatedIoAcceptor

IoAcceptor for datagram transport (UDP/IP).

Version:
$Rev: 450139 $, $Date: 2006-09-26 20:24:17 +0200 (Tue, 26 Sep 2006) $
Author:
The Apache Directory Project (mina-dev@directory.apache.org)

Field Summary
 
Fields inherited from class org.apache.mina.common.support.DelegatedIoAcceptor
delegate
 
Constructor Summary
DatagramAcceptor()
          Creates a new instance using a NewThreadExecutor
DatagramAcceptor(Executor executor)
          Creates a new instance.
 
Method Summary
 void setDefaultConfig(DatagramAcceptorConfig defaultConfig)
          Sets the config this acceptor will use by default.
 
Methods inherited from class org.apache.mina.common.support.DelegatedIoAcceptor
addListener, bind, bind, getDefaultConfig, 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
 

Constructor Detail

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
Method Detail

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.