Package org.apache.http.conn
Interface ClientConnectionRequest
-
@Deprecated public interface ClientConnectionRequestDeprecated.(4.3) replaced byConnectionRequest.Encapsulates a request for aManagedClientConnection.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidabortRequest()Deprecated.Aborts the call togetConnection(long, TimeUnit), causing it to throw anInterruptedException.ManagedClientConnectiongetConnection(long timeout, java.util.concurrent.TimeUnit timeUnit)Deprecated.Obtains a connection within a given time.
-
-
-
Method Detail
-
getConnection
ManagedClientConnection getConnection(long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException, ConnectionPoolTimeoutException
Deprecated.Obtains a connection within a given time. This method will block until a connection becomes available, the timeout expires, or the connection manager isshut down. Timeouts are handled with millisecond precision. IfabortRequest()is called while this is blocking or before this began, anInterruptedExceptionwill be thrown.- Parameters:
timeout- the timeout, 0 or negative for no timeouttimeUnit- the unit for thetimeout, may benullonly if there is no timeout- Returns:
- a connection that can be used to communicate along the given route
- Throws:
ConnectionPoolTimeoutException- in case of a timeoutjava.lang.InterruptedException- if the calling thread is interrupted while waiting
-
abortRequest
void abortRequest()
Deprecated.Aborts the call togetConnection(long, TimeUnit), causing it to throw anInterruptedException.
-
-