public interface ConnectionRequest extends org.apache.http.concurrent.Cancellable
HttpClientConnectionwhose life cycle is managed by a connection manager.
org.apache.http.HttpClientConnection get(long timeout, TimeUnit tunit) throws InterruptedException, ExecutionException, ConnectionPoolTimeoutException
Cancellable.cancel()is called while this is blocking or before this began, an
InterruptedExceptionwill be thrown.
timeout- the timeout, 0 or negative for no timeout
tunit- the unit for the
timeout, may be
nullonly if there is no timeout
ConnectionPoolTimeoutException- in case of a timeout
InterruptedException- if the calling thread is interrupted while waiting
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.