Future@Deprecated
public interface PoolEntryRequest
BasicPoolEntry.| 限定符和类型 | 方法和说明 |
|---|---|
void |
abortRequest()
已过时。
Aborts the active or next call to
getPoolEntry(long, TimeUnit). |
BasicPoolEntry |
getPoolEntry(long timeout,
java.util.concurrent.TimeUnit tunit)
已过时。
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).