Class OAuthAsyncCompletionHandler<T>
- java.lang.Object
-
- com.github.scribejava.httpclient.apache.OAuthAsyncCompletionHandler<T>
-
- All Implemented Interfaces:
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
public class OAuthAsyncCompletionHandler<T> extends Object implements org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
-
-
Constructor Summary
Constructors Constructor Description OAuthAsyncCompletionHandler(OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-
-
-
Constructor Detail
-
OAuthAsyncCompletionHandler
public OAuthAsyncCompletionHandler(OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-
-
Method Detail
-
completed
public void completed(org.apache.http.HttpResponse httpResponse)
- Specified by:
completed
in interfaceorg.apache.http.concurrent.FutureCallback<T>
-
failed
public void failed(Exception e)
- Specified by:
failed
in interfaceorg.apache.http.concurrent.FutureCallback<T>
-
cancelled
public void cancelled()
- Specified by:
cancelled
in interfaceorg.apache.http.concurrent.FutureCallback<T>
-
getResult
public T getResult() throws InterruptedException, ExecutionException
-
getResult
public T getResult(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
-
-