Class ApacheHttpFuture<T>
java.lang.Object
com.github.scribejava.httpclient.apache.ApacheHttpFuture<T>
- All Implemented Interfaces:
Future<T>
-
Constructor Summary
ConstructorsConstructorDescriptionApacheHttpFuture
(Future<org.apache.http.HttpResponse> future, OAuthAsyncCompletionHandler<T> handler) -
Method Summary
-
Constructor Details
-
ApacheHttpFuture
public ApacheHttpFuture(Future<org.apache.http.HttpResponse> future, OAuthAsyncCompletionHandler<T> handler)
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-