Class ApacheHttpFuture<T>
- java.lang.Object
-
- com.github.scribejava.httpclient.apache.ApacheHttpFuture<T>
-
-
Constructor Summary
Constructors Constructor Description ApacheHttpFuture(Future<org.apache.http.HttpResponse> future, OAuthAsyncCompletionHandler<T> handler)
-
-
-
Constructor Detail
-
ApacheHttpFuture
public ApacheHttpFuture(Future<org.apache.http.HttpResponse> future, OAuthAsyncCompletionHandler<T> handler)
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceFuture<T>
-
get
public T get() throws InterruptedException, ExecutionException
- 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
-
-