public org.apache.http.conn.ManagedClientConnection | getConnection(long timeout, java.util.concurrent.TimeUnit tunit)Obtains a connection within a given time.
This method will block until a connection becomes available,
the timeout expires, or the connection manager is
{@link ClientConnectionManager#shutdown() shut down}.
Timeouts are handled with millisecond precision.
If {@link #abortRequest()} is called while this is blocking or
before this began, an {@link InterruptedException} will
be thrown.
|