Future@Deprecated public interface PoolEntryRequest
BasicPoolEntry.| Modifier and Type | Method and Description |
|---|---|
void |
abortRequest()
Deprecated.
Aborts the active or next call to
getPoolEntry(long, TimeUnit). |
BasicPoolEntry |
getPoolEntry(long timeout,
TimeUnit tunit)
Deprecated.
Obtains a pool entry with a connection within the given timeout.
|
BasicPoolEntry getPoolEntry(long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException
abortRequest() is called before this completes
an InterruptedException is thrown.timeout - the timeout, 0 or negative for no timeouttunit - the unit for the timeout,
may be null only if there is no timeoutConnectionPoolTimeoutException - if the timeout expiredInterruptedException - if the calling thread was interrupted or the request was abortedvoid abortRequest()
getPoolEntry(long, TimeUnit).Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.