Package org.apache.mina.util

Examples of org.apache.mina.util.NewThreadExecutor


public class DatagramConnector extends DelegatedIoConnector {
    /**
     * Creates a new instance using a NewThreadExecutor
     */
    public DatagramConnector() {
        init(new DatagramConnectorDelegate(this, new NewThreadExecutor()));
    }
View Full Code Here


public class DatagramAcceptor extends DelegatedIoAcceptor {
    /**
     * Creates a new instance using a NewThreadExecutor
     */
    public DatagramAcceptor() {
        init(new DatagramAcceptorDelegate(this, new NewThreadExecutor()));
    }
View Full Code Here

    public IoAcceptor createAcceptor()
    {
        if (_multiThreadNIO)
        {
            _logger.warn("Using Qpid Multithreaded IO Processing");
            return new org.apache.mina.transport.socket.nio.MultiThreadSocketAcceptor(processors, new NewThreadExecutor());
        }
        else
        {
            _logger.warn("Using Mina IO Processing");
            return new org.apache.mina.transport.socket.nio.SocketAcceptor(processors, new NewThreadExecutor());
        }
    }
View Full Code Here

    /**
     * Create a connector with a single processing thread using a NewThreadExecutor
     */
    public SocketConnector() {
        this(1, new NewThreadExecutor());
    }
View Full Code Here

    /**
     * Create an acceptor with a single processing thread using a NewThreadExecutor
     */
    public SocketAcceptor() {
        this(1, new NewThreadExecutor());
    }
View Full Code Here

        _config = config;

        if (_useNIO)
        {
            _acceptor = new org.apache.mina.transport.socket.nio.MultiThreadSocketAcceptor(_processors,
                    new NewThreadExecutor());
        }
        else
        {
            _acceptor = new org.apache.mina.transport.socket.nio.SocketAcceptor(_processors, new NewThreadExecutor());
        }

        SocketAcceptorConfig sconfig = (SocketAcceptorConfig) _acceptor.getDefaultConfig();
        sconfig.setThreadModel(ExecutorThreadModel.getInstance("MINANetworkDriver(Acceptor)"));
        SocketSessionConfig sc = (SocketSessionConfig) sconfig.getSessionConfig();
View Full Code Here

    /**
     * Create an acceptor with a single processing thread using a NewThreadExecutor
     */
    public MultiThreadSocketAcceptor()
    {
        this( 1, new NewThreadExecutor() );
    }
View Full Code Here

    private int workerTimeout = 60// 1 min.

    /** Create a connector with a single processing thread using a NewThreadExecutor */
    public MultiThreadSocketConnector()
    {
        this(1, new NewThreadExecutor());
    }
View Full Code Here

    /**
     * Creates a new instance using a NewThreadExecutor
     */
    public DatagramAcceptor()
    {
        init( new DatagramAcceptorDelegate( this, new NewThreadExecutor( ) ) );
    }
View Full Code Here

    /**
     * Creates a new instance using a NewThreadExecutor
     */
    public DatagramConnector()
    {
        init( new DatagramConnectorDelegate( this, new NewThreadExecutor( ) ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.mina.util.NewThreadExecutor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.