io.github.stewseo.client.transport.Transport Maven / Gradle / Ivy
package io.github.stewseo.client.transport;
import io.github.stewseo.client.json.JsonpMapper;
import io.github.stewseo.lowlevel.restclient.RestClient;
import java.io.Closeable;
import java.io.IOException;
import java.util.concurrent.CompletableFuture;
public interface Transport extends Closeable {
ResponseT performRequest(
RequestT request,
Endpoint endpoint, // adds id for endpoint /_ingest/pipeline/{pipeline_id}
TransportOptions options
) throws IOException;
CompletableFuture performRequestAsync(
RequestT request,
Endpoint endpoint,
TransportOptions options
);
JsonpMapper jsonpMapper();
TransportOptions options();
RestClient restClient();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy