ConnectionRequest
.@Deprecated
public interface ClientConnectionRequest
ManagedClientConnection
.Modifier and Type | Method and Description |
---|---|
void |
abortRequest()
Deprecated.
Aborts the call to
getConnection(long, TimeUnit) ,
causing it to throw an InterruptedException . |
ManagedClientConnection |
getConnection(long timeout,
java.util.concurrent.TimeUnit tunit)
Deprecated.
Obtains a connection within a given time.
|
ManagedClientConnection getConnection(long timeout, java.util.concurrent.TimeUnit tunit) throws java.lang.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 timeouttunit
- the unit for the timeout
,
may be null
only if there is no timeoutConnectionPoolTimeoutException
- in case of a timeoutjava.lang.InterruptedException
- if the calling thread is interrupted while waitingvoid abortRequest()
getConnection(long, TimeUnit)
,
causing it to throw an InterruptedException
.