Future
@Deprecated public interface PoolEntryRequest
BasicPoolEntry的请求。
| Modifier and Type | Method and Description |
|---|---|
void |
abortRequest()
已过时。
中止主动或下一次呼叫
getPoolEntry(long, TimeUnit) 。
|
BasicPoolEntry |
getPoolEntry(long timeout, TimeUnit tunit)
已过时。
在给定的超时内获取连接的池条目。
|
BasicPoolEntry getPoolEntry(long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException
abortRequest()在此完成之前被调用,则抛出InterruptedException 。
timeout - 超时,0或否定,无超时
tunit -为对所述单元
timeout ,可以是
null只有如果没有超时
ConnectionPoolTimeoutException - 如果超时过期
InterruptedException - 如果调用线程中断或请求中止
void abortRequest()
getPoolEntry(long, TimeUnit) 。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.