类 AsyncHttpExecutor<T>

java.lang.Object
com.dtflys.forest.backend.AsyncHttpExecutor<T>
所有已实现的接口:
HttpExecutor

public class AsyncHttpExecutor<T> extends Object implements HttpExecutor
Forest异步请求执行器
从以下版本开始:
1.5.12
作者:
gongjun [dt_flys@hotmail.com]
  • 字段详细资料

    • configuration

      protected final ForestConfiguration configuration
    • syncExecutor

      protected final HttpExecutor syncExecutor
      Forest同步请求执行器
    • responseHandler

      protected final ResponseHandler responseHandler
      Forest响应对象处理器
  • 构造器详细资料

  • 方法详细资料

    • getMaxAsyncThreadSize

      public static int getMaxAsyncThreadSize()
      获取最大异步线程数
      返回:
      最大异步线程数
    • getMaxAsyncThreadSize

      public static int getMaxAsyncThreadSize(ForestConfiguration configuration)
      获取最大异步线程数
      参数:
      configuration - Forest配置对象
      返回:
      最大异步线程数
    • getAsyncThreadSize

      public static int getAsyncThreadSize()
      获取异步线程池大小
      返回:
      异步线程池大小
      从以下版本开始:
      1.5.29
    • getAsyncThreadSize

      public static int getAsyncThreadSize(ForestConfiguration configuration)
      获取异步线程池大小
      参数:
      configuration - Forest配置对象
      返回:
      异步线程池大小
      从以下版本开始:
      1.5.29
    • getRequest

      public ForestRequest getRequest()
      指定者:
      getRequest 在接口中 HttpExecutor
    • execute

      public void execute(LifeCycleHandler lifeCycleHandler)
      指定者:
      execute 在接口中 HttpExecutor
    • getResponseHandler

      public ResponseHandler getResponseHandler()
      指定者:
      getResponseHandler 在接口中 HttpExecutor
    • getResponseFactory

      public ForestResponseFactory getResponseFactory()
      指定者:
      getResponseFactory 在接口中 HttpExecutor
    • close

      public void close()
      指定者:
      close 在接口中 HttpExecutor
    • closePool

      public static void closePool()
      关闭异步请求线程池
      从以下版本开始:
      1.5.23