All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.vality.http.client.AsyncHttpClient Maven / Gradle / Ivy

The newest version!
package dev.vality.http.client;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.concurrent.FutureCallback;

import java.util.concurrent.Future;

public interface AsyncHttpClient {

    Future post(String methodName, HttpPost httpPost, FutureCallback callback, C client);

    Future post(String methodName, HttpPost httpPost, FutureCallback callback);

    Future get(String methodName, HttpGet httpGet, FutureCallback callback, C client);

    Future get(String methodName, HttpGet httpGet, FutureCallback callback);

    Future delete(String methodName,
                                HttpDelete httpDelete,
                                FutureCallback callback,
                                C client);

    Future delete(String methodName, HttpDelete httpDelete, FutureCallback callback);

    Future put(String methodName, HttpPut httpPut, FutureCallback callback, C client);

    Future put(String methodName, HttpPut httpPut, FutureCallback callback);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy