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,
java.util.concurrent.TimeUnit tunit)
Deprecated.
Obtains a pool entry with a connection within the given timeout.
|
BasicPoolEntry getPoolEntry(long timeout, java.util.concurrent.TimeUnit tunit) throws java.lang.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 expiredjava.lang.InterruptedException
- if the calling thread was interrupted or the request was abortedvoid abortRequest()
getPoolEntry(long, TimeUnit)
.