类 AsyncHttpExecutor<T>
java.lang.Object
com.dtflys.forest.backend.AsyncHttpExecutor<T>
- 所有已实现的接口:
HttpExecutor
Forest异步请求执行器
- 从以下版本开始:
- 1.5.12
- 作者:
- gongjun [dt_flys@hotmail.com]
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected final ForestConfigurationprotected final ResponseHandlerForest响应对象处理器protected final HttpExecutorForest同步请求执行器 -
构造器概要
构造器构造器说明AsyncHttpExecutor(ForestConfiguration configuration, HttpExecutor syncExecutor, ResponseHandler responseHandler) -
方法概要
修饰符和类型方法说明voidclose()static void关闭异步请求线程池voidexecute(LifeCycleHandler lifeCycleHandler) static int获取异步线程池大小static intgetAsyncThreadSize(ForestConfiguration configuration) 获取异步线程池大小static int获取最大异步线程数static intgetMaxAsyncThreadSize(ForestConfiguration configuration) 获取最大异步线程数
-
字段详细资料
-
configuration
-
syncExecutor
Forest同步请求执行器 -
responseHandler
Forest响应对象处理器
-
-
构造器详细资料
-
AsyncHttpExecutor
public AsyncHttpExecutor(ForestConfiguration configuration, HttpExecutor syncExecutor, ResponseHandler responseHandler)
-
-
方法详细资料
-
getMaxAsyncThreadSize
public static int getMaxAsyncThreadSize()获取最大异步线程数- 返回:
- 最大异步线程数
-
getMaxAsyncThreadSize
获取最大异步线程数- 参数:
configuration- Forest配置对象- 返回:
- 最大异步线程数
-
getAsyncThreadSize
public static int getAsyncThreadSize()获取异步线程池大小- 返回:
- 异步线程池大小
- 从以下版本开始:
- 1.5.29
-
getAsyncThreadSize
获取异步线程池大小- 参数:
configuration- Forest配置对象- 返回:
- 异步线程池大小
- 从以下版本开始:
- 1.5.29
-
getRequest
- 指定者:
getRequest在接口中HttpExecutor
-
execute
- 指定者:
execute在接口中HttpExecutor
-
getResponseHandler
- 指定者:
getResponseHandler在接口中HttpExecutor
-
getResponseFactory
- 指定者:
getResponseFactory在接口中HttpExecutor
-
close
public void close()- 指定者:
close在接口中HttpExecutor
-
closePool
public static void closePool()关闭异步请求线程池- 从以下版本开始:
- 1.5.23
-