ConnectionRequest取代。
@Deprecated public interface ClientConnectionRequest
ManagedClientConnection的请求。
| Modifier and Type | Method and Description |
|---|---|
void |
abortRequest()
已过时。
中止电话 getConnection(long, TimeUnit) ,导致它抛出InterruptedException 。
|
ManagedClientConnection |
getConnection(long timeout, TimeUnit tunit)
已过时。
在给定时间内获取连接。
|
ManagedClientConnection getConnection(long timeout, TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException
shut down 。
超时以毫秒精度处理。
如果abortRequest()被阻塞或在此之前被调用,那么InterruptedException将被抛出。
timeout - 超时,0或否定超时
tunit -为对所述单元
timeout ,可以是
null只有如果没有超时
ConnectionPoolTimeoutException - 超时的情况
InterruptedException - 如果调用线程在等待时中断
void abortRequest()
getConnection(long, TimeUnit) ,导致它抛出InterruptedException 。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.