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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Tget()Tget(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()
-
-
-
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:
isCancelledin interfaceFuture<T>
-
get
public T get() throws InterruptedException, ExecutionException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
-