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

com.hubspot.horizon.AsyncHttpClient Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package com.hubspot.horizon;

import com.google.common.util.concurrent.ListenableFuture;
import com.hubspot.horizon.HttpRequest.Options;

import java.io.Closeable;

public interface AsyncHttpClient extends Closeable {
  ListenableFuture execute(HttpRequest request);
  ListenableFuture execute(HttpRequest request, Options options);

  void execute(HttpRequest request, Callback callback);
  void execute(HttpRequest request, Options options, Callback callback);

  interface Callback {
    void completed(HttpResponse response);
    void failed(Exception e);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy