public interface ConnectionRequest
extends org.apache.http.concurrent.Cancellable
HttpClientConnection
whose life cycle
is managed by a connection manager.org.apache.http.HttpClientConnection get(long timeout, TimeUnit timeUnit) throws InterruptedException, ExecutionException, ConnectionPoolTimeoutException
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 timeouttimeUnit
- 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 waitingExecutionException
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.