Package io.undertow.server.handlers.proxy

Examples of io.undertow.server.handlers.proxy.ProxyConnectionPool$ConnectionHolder


        this.ioThread = ioThread;
        this.bufferPool = bufferPool;
        this.balancerConfig = balancerConfig;
        this.container = container;
        this.connectionPoolManager = new NodeConnectionPoolManager();
        this.connectionPool = new ProxyConnectionPool(connectionPoolManager, nodeConfig.getConnectionURI(), container.getXnioSsl(), container.getClient(), OptionMap.EMPTY);
    }
View Full Code Here


        this.jvmRoute = nodeConfig.getJvmRoute();
        this.nodeConfig = nodeConfig;
        this.ioThread = ioThread;
        this.balancerConfig = balancerConfig;
        this.connectionPoolManager = new NodeConnectionPoolManager();
        this.connectionPool = new ProxyConnectionPool(connectionPoolManager, nodeConfig.getConnectionURI(), xnioSsl, client, OptionMap.EMPTY);
    }
View Full Code Here

        this.connectionPoolManager = new NodeConnectionPoolManager();
    }

    synchronized void updateConfig(NodeConfig config) {
        //TODO: do more stuff
        ProxyConnectionPool pool = connectionPool;
        this.connectionPool = null;
        pool.close();
        this.nodeConfig = config;
    }
View Full Code Here

    public ProxyConnectionPool getConnectionPool() {
        if(connectionPool == null) {
            synchronized (this) {
                if(connectionPool == null) {
                    try {
                        connectionPool = new ProxyConnectionPool(connectionPoolManager, new URI(nodeConfig.getType(), null, nodeConfig.getHostname(), nodeConfig.getPort(), "/", "", ""), xnioSsl, client, OptionMap.EMPTY);
                    } catch (URISyntaxException e) {
                        throw new RuntimeException(e);
                    }
                }
            }
View Full Code Here

TOP

Related Classes of io.undertow.server.handlers.proxy.ProxyConnectionPool$ConnectionHolder

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.