public interface ConnectionRequest extends Cancellable
HttpClientConnection.| Modifier and Type | Method and Description |
|---|---|
HttpClientConnection |
get(long timeout,
TimeUnit tunit)
Obtains a connection within a given time.
|
cancelHttpClientConnection get(long timeout, TimeUnit tunit) throws InterruptedException, ExecutionException, ConnectionPoolTimeoutException
shut down.
Timeouts are handled with millisecond precision.
If Cancellable.cancel() is called while this is blocking or
before this began, an InterruptedException will
be thrown.timeout - the timeout, 0 or negative for no timeouttunit - the unit for the timeout,
may be null only if there is no timeoutConnectionPoolTimeoutException - in case of a timeoutInterruptedException - if the calling thread is interrupted while waitingExecutionExceptionCopyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.