io.hyperfoil.api.connection.HttpConnectionPool Maven / Gradle / Ivy
package io.hyperfoil.api.connection;
import java.util.Collection;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import io.netty.buffer.ByteBuf;
import io.netty.util.concurrent.EventExecutor;
import io.hyperfoil.api.session.Session;
public interface HttpConnectionPool {
HttpClientPool clientPool();
boolean request(HttpRequest request,
BiConsumer[] headerAppenders,
BiFunction bodyGenerator);
void registerWaitingSession(Session session);
int waitingSessions();
EventExecutor executor();
void pulse();
Collection extends HttpConnection> connections();
void release(HttpConnection connection);
}