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

java.lang.Object
  extended by org.apache.mina.common.support.DelegatedIoAcceptor
      extended by org.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: 587373 $, $Date: 2007-10-23 04:54:05 +0200 (Di, 23. Okt 2007) $
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
 DatagramAcceptorConfig getDefaultConfig()
          Returns the default configuration which is used when you didn't specify any configuration.
 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, 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

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 org.apache.mina.common.support.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 © 2004-2011 Apache MINA Project. All Rights Reserved.