public class OAuthAsyncCompletionHandler<T> extends Object implements org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
Constructor and Description |
---|
OAuthAsyncCompletionHandler(OAuthAsyncRequestCallback<T> callback,
OAuthRequest.ResponseConverter<T> converter) |
public OAuthAsyncCompletionHandler(OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
public void completed(org.apache.http.HttpResponse httpResponse)
completed
in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
public void failed(Exception e)
failed
in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
public void cancelled()
cancelled
in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
public T getResult() throws InterruptedException, ExecutionException
public T getResult(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Copyright © 2018. All rights reserved.