Interface PoolEntryRequest


  • @Deprecated
    public interface PoolEntryRequest
    Deprecated.
    (4.2) use Future
    Encapsulates a request for a BasicPoolEntry.
    Since:
    4.0
    • Method Detail

      • getPoolEntry

        BasicPoolEntry getPoolEntry​(long timeout,
                                    java.util.concurrent.TimeUnit timeUnit)
                             throws java.lang.InterruptedException,
                                    ConnectionPoolTimeoutException
        Deprecated.
        Obtains a pool entry with a connection within the given timeout. If abortRequest() is called before this completes an InterruptedException is thrown.
        Parameters:
        timeout - the timeout, 0 or negative for no timeout
        timeUnit - the unit for the timeout, may be null only if there is no timeout
        Returns:
        pool entry holding a connection for the route
        Throws:
        ConnectionPoolTimeoutException - if the timeout expired
        java.lang.InterruptedException - if the calling thread was interrupted or the request was aborted