类 ForestFuture<T>
java.lang.Object
com.dtflys.forest.http.ResultGetter
com.dtflys.forest.http.ForestFuture<T>
- 所有已实现的接口:
Future<T>
Forest Future 对象,它可以在请求发起的线程中阻塞线程,并等待请求返回响应结果
- 从以下版本开始:
- 1.5.27
- 作者:
- gongjun[dt_flys@hotmail.com]
-
字段概要
从类继承的字段 com.dtflys.forest.http.ResultGetter
HANDLER -
构造器概要
构造器 -
方法概要
从类继承的方法 com.dtflys.forest.http.ResultGetter
get, get, get
-
构造器详细资料
-
ForestFuture
-
-
方法详细资料
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- 指定者:
isCancelled在接口中Future<T>
-
isDone
public boolean isDone() -
await
-
await
-
get
- 指定者:
get在接口中Future<T>- 抛出:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, @NotNull TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - 指定者:
get在接口中Future<T>- 抛出:
InterruptedExceptionExecutionExceptionTimeoutException
-
getResponse
- 指定者:
getResponse在类中ResultGetter
-