Constructor and Description |
---|
HttpclientForestFuture(ForestRequest request,
Class<T> innerType,
LifeCycleHandler lifeCycleHandler,
Future<R> httpResponseFuture,
ForestResponseFactory forestResponseFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public HttpclientForestFuture(ForestRequest request, Class<T> innerType, LifeCycleHandler lifeCycleHandler, Future<R> httpResponseFuture, ForestResponseFactory forestResponseFactory)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<T>
public T get() throws InterruptedException, ExecutionException
get
in interface Future<T>
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
InterruptedException
ExecutionException
TimeoutException
Copyright © 2020. All rights reserved.