|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Future
@Deprecated public interface PoolEntryRequest
Encapsulates a request for a BasicPoolEntry
.
Method Summary | |
---|---|
void |
abortRequest()
Deprecated. Aborts the active or next call to getPoolEntry(long, TimeUnit) . |
BasicPoolEntry |
getPoolEntry(long timeout,
TimeUnit timeUnit)
Deprecated. Obtains a pool entry with a connection within the given timeout. |
Method Detail |
---|
BasicPoolEntry getPoolEntry(long timeout, TimeUnit timeUnit) throws InterruptedException, ConnectionPoolTimeoutException
abortRequest()
is called before this completes
an InterruptedException
is thrown.
timeout
- the timeout, 0 or negative for no timeouttimeUnit
- the unit for the timeout
,
may be null
only if there is no timeout
ConnectionPoolTimeoutException
- if the timeout expired
InterruptedException
- if the calling thread was interrupted or the request was abortedvoid abortRequest()
getPoolEntry(long, TimeUnit)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |