类 HttpclientForestFuture<T,R>
java.lang.Object
com.dtflys.forest.backend.httpclient.response.HttpclientForestFuture<T,R>
- 所有已实现的接口:
Future<T>
- 从以下版本开始:
- 2017-08-03 14:53
- 作者:
- gongjun[jun.gong@thebeastshop.com]
-
构造器概要
构造器构造器说明HttpclientForestFuture(ForestRequest request, Date requestTime, Class<T> innerType, LifeCycleHandler lifeCycleHandler, Future<R> httpResponseFuture, ForestResponseFactory forestResponseFactory) -
方法概要
-
构造器详细资料
-
HttpclientForestFuture
public HttpclientForestFuture(ForestRequest request, Date requestTime, Class<T> innerType, LifeCycleHandler lifeCycleHandler, Future<R> httpResponseFuture, ForestResponseFactory forestResponseFactory)
-
-
方法详细资料
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- 指定者:
isCancelled在接口中Future<T>
-
getRequestTime
-
isDone
public boolean isDone() -
get
- 指定者:
get在接口中Future<T>- 抛出:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - 指定者:
get在接口中Future<T>- 抛出:
InterruptedExceptionExecutionExceptionTimeoutException
-