Package org.asteriskjava.fastagi.internal

Examples of org.asteriskjava.fastagi.internal.FastAgiConnectionHandler


            }

            logger.info("Received connection from " + socket.getRemoteAddress());

            // execute connection handler
            final AgiConnectionHandler connectionHandler = new FastAgiConnectionHandler(getMappingStrategy(), socket, this.getAgiChannelFactory());
            try
            {
                execute(connectionHandler);
            }
            catch (RejectedExecutionException e)
            {
                logger.warn("Execution was rejected by pool. Try to increase the pool size.");
                // release resources like closing the socket if execution was rejected due to the pool size
                connectionHandler.release();
            }
        }
        logger.info("AgiServer shut down.");
    }
View Full Code Here


        {
            try
            {
                socket = serverSocket.accept();
                logger.info("Received connection from " + socket.getRemoteAddress());
                connectionHandler = new FastAgiConnectionHandler(getMappingStrategy(), socket);
                execute(connectionHandler);
            }
            catch (IOException e)
            {
                // swallow only if shutdown
View Full Code Here

TOP

Related Classes of org.asteriskjava.fastagi.internal.FastAgiConnectionHandler

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.