/** * Closes idle connections. */ public synchronized void run() { while (!shutdown) { Iterator iter = connectionManagers.iterator(); while (iter.hasNext()) { HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next(); handleCloseIdleConnections(connectionManager); } try { this.wait(timeoutInterval); } catch (InterruptedException e) { } } // clear out the connection managers now that we're shutdown this.connectionManagers.clear(); }
/** * Closes idle connections. */ public synchronized void run() { while (!shutdown) { Iterator iter = connectionManagers.iterator(); while (iter.hasNext()) { HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next(); handleCloseIdleConnections(connectionManager); } try { this.wait(timeoutInterval); } catch (InterruptedException e) { } } // clear out the connection managers now that we're shutdown this.connectionManagers.clear(); }
/** * Closes idle connections. */ public synchronized void run() { while (!shutdown) { Iterator iter = connectionManagers.iterator(); while (iter.hasNext()) { HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next(); handleCloseIdleConnections(connectionManager); } try { this.wait(timeoutInterval); } catch (InterruptedException e) { } } // clear out the connection managers now that we're shutdown this.connectionManagers.clear(); }
/** * Closes idle connections. */ public synchronized void run() { while (!shutdown) { Iterator iter = connectionManagers.iterator(); while (iter.hasNext()) { HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next(); handleCloseIdleConnections(connectionManager); } try { this.wait(timeoutInterval); } catch (InterruptedException e) { } } // clear out the connection managers now that we're shutdown this.connectionManagers.clear(); }
/** * Closes idle connections. */ public synchronized void run() { while (!shutdown) { Iterator iter = connectionManagers.iterator(); while (iter.hasNext()) { HttpConnectionManager connectionManager = (HttpConnectionManager) iter.next(); handleCloseIdleConnections(connectionManager); } try { this.wait(timeoutInterval); } catch (InterruptedException e) { } } // clear out the connection managers now that we're shutdown this.connectionManagers.clear(); }