public ManagedClientConnection getConnection( long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { if (route == null) { throw new IllegalArgumentException("Route may not be null."); } if (log.isDebugEnabled()) { log.debug("ThreadSafeClientConnManager.getConnection: " + route + ", timeout = " + timeout); } BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); // BEGIN android-changed // When using a recycled Socket, we need to re-tag it with any // updated statistics options. try { final Socket socket = entry.getConnection().getSocket(); if (socket != null) { SocketTagger.get().tag(socket); } } catch (IOException iox) { log.debug("Problem tagging socket.", iox); } // END android-changed return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
@Override public ManagedClientConnection getConnection( final long timeout, final TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { Args.notNull(route, "Route"); if (log.isDebugEnabled()) { log.debug("Get connection: " + route + ", timeout = " + timeout); } final BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
@Override public ManagedClientConnection getConnection( final long timeout, final TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { Args.notNull(route, "Route"); if (log.isDebugEnabled()) { log.debug("Get connection: " + route + ", timeout = " + timeout); } final BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
public ManagedClientConnection getConnection( final long timeout, final TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { Args.notNull(route, "Route"); if (log.isDebugEnabled()) { log.debug("Get connection: " + route + ", timeout = " + timeout); } final BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
public ManagedClientConnection getConnection( final long timeout, final TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { Args.notNull(route, "Route"); if (log.isDebugEnabled()) { log.debug("Get connection: " + route + ", timeout = " + timeout); } final BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
public ManagedClientConnection getConnection( long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { if (route == null) { throw new IllegalArgumentException("Route may not be null."); } if (log.isDebugEnabled()) { log.debug("ThreadSafeClientConnManager.getConnection: " + route + ", timeout = " + timeout); } BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); // BEGIN android-changed // When using a recycled Socket, we need to re-tag it with any // updated statistics options. try { final Socket socket = entry.getConnection().getSocket(); if (socket != null) { SocketTagger.get().tag(socket); } } catch (IOException iox) { log.debug("Problem tagging socket.", iox); } // END android-changed return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
public ManagedClientConnection getConnection( long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { if (route == null) { throw new IllegalArgumentException("Route may not be null."); } if (log.isDebugEnabled()) { log.debug("ThreadSafeClientConnManager.getConnection: " + route + ", timeout = " + timeout); } BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); // BEGIN android-changed // When using a recycled Socket, we need to re-tag it with any // updated statistics options. try { final Socket socket = entry.getConnection().getSocket(); if (socket != null) { SocketTagger.get().tag(socket); } } catch (IOException iox) { log.debug("Problem tagging socket.", iox); } // END android-changed return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
public ManagedClientConnection getConnection( long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { if (route == null) { throw new IllegalArgumentException("Route may not be null."); } if (log.isDebugEnabled()) { log.debug("ThreadSafeClientConnManager.getConnection: " + route + ", timeout = " + timeout); } BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); // BEGIN android-changed // When using a recycled Socket, we need to re-tag it with any // updated statistics options. try { final Socket socket = entry.getConnection().getSocket(); if (socket != null) { SocketTagger.get().tag(socket); } } catch (IOException iox) { log.debug("Problem tagging socket.", iox); } // END android-changed return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }
public ManagedClientConnection getConnection( long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { if (route == null) { throw new IllegalArgumentException("Route may not be null."); } if (log.isDebugEnabled()) { log.debug("ThreadSafeClientConnManager.getConnection: " + route + ", timeout = " + timeout); } BasicPoolEntry entry = poolRequest.getPoolEntry(timeout, tunit); // BEGIN android-changed // When using a recycled Socket, we need to re-tag it with any // updated statistics options. try { final Socket socket = entry.getConnection().getSocket(); if (socket != null) { SocketTagger.get().tag(socket); } } catch (IOException iox) { log.debug("Problem tagging socket.", iox); } // END android-changed return new BasicPooledConnAdapter(ThreadSafeClientConnManager.this, entry); }