|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ConnectionRequest
.
@Deprecated public interface ClientConnectionRequest
Encapsulates a request for a ManagedClientConnection
.
Method Summary | |
---|---|
void |
abortRequest()
Deprecated. Aborts the call to getConnection(long, TimeUnit) ,
causing it to throw an InterruptedException . |
ManagedClientConnection |
getConnection(long timeout,
TimeUnit timeUnit)
Deprecated. Obtains a connection within a given time. |
Method Detail |
---|
ManagedClientConnection getConnection(long timeout, TimeUnit timeUnit) throws InterruptedException, ConnectionPoolTimeoutException
shut down
.
Timeouts are handled with millisecond precision.
If abortRequest()
is called while this is blocking or
before this began, an InterruptedException
will
be 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
- in case of a timeout
InterruptedException
- if the calling thread is interrupted while waitingvoid abortRequest()
getConnection(long, TimeUnit)
,
causing it to throw an InterruptedException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |