## Uses of Interface
org.apache.http.conn.ConnectionKeepAliveStrategy

- Packages that use ConnectionKeepAliveStrategy
  软件包 | 描述
  --- | ---
  org.apache.http.impl.client | 默认HTTP客户端实现。
  org.apache.http.impl.execchain | HTTP请求执行链API。

- - ### Uses of ConnectionKeepAliveStrategy in org.apache.http.impl.client

    Classes in org.apache.http.impl.client that implement ConnectionKeepAliveStrategy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultConnectionKeepAliveStrategy` 确定连接可以保持空闲状态的策略的默认实现。

    Fields in org.apache.http.impl.client declared as ConnectionKeepAliveStrategy
    Modifier and Type | Field and Description
    --- | ---
    `protected ConnectionKeepAliveStrategy` | DefaultRequestDirector.`keepAliveStrategy` 已过时。 保持持续时间策略。

    Methods in org.apache.http.impl.client that return ConnectionKeepAliveStrategy
    Modifier and Type | Method and Description
    --- | ---
    `protected ConnectionKeepAliveStrategy` | AbstractHttpClient.`createConnectionKeepAliveStrategy()` 已过时。
    `ConnectionKeepAliveStrategy` | AbstractHttpClient.`getConnectionKeepAliveStrategy()` 已过时。

    Methods in org.apache.http.impl.client with parameters of type ConnectionKeepAliveStrategy
    Modifier and Type | Method and Description
    --- | ---
    `protected RequestDirector` | AbstractHttpClient.`createClientRequestDirector(HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectHandler redirectHandler, AuthenticationHandler targetAuthHandler, AuthenticationHandler proxyAuthHandler, UserTokenHandler userTokenHandler, HttpParams params)` 已过时。 （4.1）不要使用
    `protected RequestDirector` | AbstractHttpClient.`createClientRequestDirector(HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectStrategy redirectStrategy, AuthenticationHandler targetAuthHandler, AuthenticationHandler proxyAuthHandler, UserTokenHandler userTokenHandler, HttpParams params)` 已过时。 （4.2）不要使用
    `protected RequestDirector` | AbstractHttpClient.`createClientRequestDirector(HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectStrategy redirectStrategy, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler, HttpParams params)` 已过时。
    `protected ClientExecChain` | HttpClientBuilder.`createMainExec(HttpRequestExecutor requestExec, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy, HttpProcessor proxyHttpProcessor, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler)` 生成一个`ClientExecChain`的实例，用作主要的exec。
    `void` | AbstractHttpClient.`setKeepAliveStrategy(ConnectionKeepAliveStrategy strategy)` 已过时。
    `HttpClientBuilder` | HttpClientBuilder.`setKeepAliveStrategy(ConnectionKeepAliveStrategy keepAliveStrategy)` 分配`ConnectionKeepAliveStrategy`实例。

    Constructors in org.apache.http.impl.client with parameters of type ConnectionKeepAliveStrategy
    Constructor and Description
    `DefaultRequestDirector(HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectHandler redirectHandler, AuthenticationHandler targetAuthHandler, AuthenticationHandler proxyAuthHandler, UserTokenHandler userTokenHandler, HttpParams params)` 已过时。
    `DefaultRequestDirector(org.apache.commons.logging.Log log, HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectStrategy redirectStrategy, AuthenticationHandler targetAuthHandler, AuthenticationHandler proxyAuthHandler, UserTokenHandler userTokenHandler, HttpParams params)` 已过时。
    `DefaultRequestDirector(org.apache.commons.logging.Log log, HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectStrategy redirectStrategy, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler, HttpParams params)` 已过时。

  - ### Uses of ConnectionKeepAliveStrategy in org.apache.http.impl.execchain

    Constructors in org.apache.http.impl.execchain with parameters of type ConnectionKeepAliveStrategy
    Constructor and Description
    `MainClientExec(HttpRequestExecutor requestExecutor, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler)`
    `MainClientExec(HttpRequestExecutor requestExecutor, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy, HttpProcessor proxyHttpProcessor, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler)`
    `MinimalClientExec(HttpRequestExecutor requestExecutor, HttpClientConnectionManager connManager, ConnectionReuseStrategy reuseStrategy, ConnectionKeepAliveStrategy keepAliveStrategy)`

Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585