Class ApacheHttpFuture<T>
java.lang.Object
com.github.scribejava.httpclient.apache.ApacheHttpFuture<T>
- All Implemented Interfaces:
Future<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorsConstructorDescriptionApacheHttpFuture
(Future<org.apache.http.HttpResponse> future, OAuthAsyncCompletionHandler<T> handler) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
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
-