Package org.apache.http.impl.conn.tsccm

Examples of org.apache.http.impl.conn.tsccm.BasicPoolEntry


        @Override
        public void run() {
            for (long c = 0; c < this.reps; c++) {
                PoolEntryRequest request = this.pool.requestPoolEntry(ROUTE, null);
                BasicPoolEntry entry;
                try {
                    entry = request.getPoolEntry(-1, TimeUnit.MILLISECONDS);
                    this.pool.freeEntry(entry, true, -1, TimeUnit.MILLISECONDS);
                } catch (ConnectionPoolTimeoutException e) {
                    e.printStackTrace();
View Full Code Here


        @Override
        public void run() {
            for (long c = 0; c < this.reps; c++) {
                PoolEntryRequest request = this.pool.requestPoolEntry(ROUTE, null);
                BasicPoolEntry entry;
                try {
                    entry = request.getPoolEntry(-1, TimeUnit.MILLISECONDS);
                    this.pool.freeEntry(entry, true, -1, TimeUnit.MILLISECONDS);
                } catch (ConnectionPoolTimeoutException e) {
                    e.printStackTrace();
View Full Code Here

                if (log.isDebugEnabled()) {
                    log.debug("Get connection: " + route + ", timeout = " + timeout);
                }

                BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit);
                SoapUIBasicPooledConnAdapter connAdapter = new SoapUIBasicPooledConnAdapter(
                        SoapUIMultiThreadedHttpConnectionManager.this, entry);
                return connAdapter;
            }
        };
View Full Code Here

        SoapUIBasicPooledConnAdapter hca = (SoapUIBasicPooledConnAdapter) conn;
        if ((hca.getPoolEntry() != null) && (hca.getManager() != this)) {
            throw new IllegalArgumentException("Connection not obtained from this manager.");
        }
        synchronized (hca) {
            BasicPoolEntry entry = (BasicPoolEntry) hca.getPoolEntry();
            if (entry == null) {
                return;
            }
            try {
                // make sure that the response has been read completely
View Full Code Here

TOP

Related Classes of org.apache.http.impl.conn.tsccm.BasicPoolEntry

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.