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

io.hyperfoil.http.api.HttpConnectionPool Maven / Gradle / Ivy

There is a newer version: 0.27.1
Show newest version
package io.hyperfoil.http.api;

import java.util.Collection;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;

import io.hyperfoil.api.connection.Connection;
import io.netty.buffer.ByteBuf;
import io.netty.channel.EventLoop;
import io.hyperfoil.api.session.Session;

public interface HttpConnectionPool {
   HttpClientPool clientPool();

   boolean request(HttpRequest request,
                   BiConsumer[] headerAppenders,
                   boolean injectHostHeader,
                   BiFunction bodyGenerator,
                   boolean reserveConnection);

   void registerWaitingSession(Session session);

   int waitingSessions();

   EventLoop executor();

   void pulse();

   Collection connections();

   void release(HttpConnection connection);

   void onSessionReset();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy