Package com.rabbitmq.client

Examples of com.rabbitmq.client.DefaultSocketConfigurator


        this.exchange = exchange;

        this.connectionFactory = new ConnectionFactory();

  connectionFactory.setSocketConfigurator(new DefaultSocketConfigurator() {
            @Override
            public void configure(Socket socket) throws IOException {
                super.configure(socket);
                socket.setSoTimeout(rabbitSocketTimeoutMS);
            }
View Full Code Here


        }
    }

    private static class ConfusedFrameHandlerFactory extends FrameHandlerFactory {
        private ConfusedFrameHandlerFactory() {
            super(1000, SocketFactory.getDefault(), new DefaultSocketConfigurator(), false);
        }
View Full Code Here

        }

        @Override
        public FrameHandlerFactory createFrameHandlerFactory()
            throws IOException {
            return new TestFrameHandlerFactory(10, SocketFactory.getDefault(), new DefaultSocketConfigurator(), false);
        }
View Full Code Here

            for(final boolean useNagle : new boolean[] { false, true }) {
                ConnectionFactory factory = new ConnectionFactory() {
                    {
                        setUri(uri);
                        setSocketConfigurator(new DefaultSocketConfigurator() {
                            @Override
                            public void configure(Socket socket) throws IOException {
                                socket.setTcpNoDelay(!useNagle);
                                socket.setReceiveBufferSize(bufferSize);
                                socket.setSendBufferSize(bufferSize);
View Full Code Here

TOP

Related Classes of com.rabbitmq.client.DefaultSocketConfigurator

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.