ManagedClientConnection getConnection(long timeout, TimeUnit timeUnit) 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
timeUnit- 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–2022 The Apache Software Foundation. All rights reserved.