ManagedClientConnection getConnection(long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException
shut down. Timeouts are handled with millisecond precision. If
abortRequest()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.