Class NewHostConnectionPool$
- java.lang.Object
-
- akka.http.impl.engine.client.pool.NewHostConnectionPool$
-
public class NewHostConnectionPool$ extends java.lang.Object
Internal APINew host connection pool implementation.
Backpressure logic of the external interface:
* pool pulls if there's a free slot * pool buffers outgoing response in a slot and registers them for becoming dispatchable. When a response is pulled a waiting slot is notified and the response is then dispatched.
The implementation is split up into this class which does all the stream-based wiring. It contains a vector of slots that contain the mutable slot state for every slot.
The actual state machine logic is handled in separate
SlotState
subclasses that interface with the logic through the cleanSlotContext
interface.
-
-
Field Summary
Fields Modifier and Type Field Description static NewHostConnectionPool$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description NewHostConnectionPool$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.stream.scaladsl.Flow<PoolFlow.RequestContext,PoolFlow.ResponseContext,akka.NotUsed>
apply(akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,scala.concurrent.Future<Http.OutgoingConnection>> connectionFlow, ConnectionPoolSettings settings, akka.event.LoggingAdapter log)
-
-
-
Field Detail
-
MODULE$
public static final NewHostConnectionPool$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public akka.stream.scaladsl.Flow<PoolFlow.RequestContext,PoolFlow.ResponseContext,akka.NotUsed> apply(akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,scala.concurrent.Future<Http.OutgoingConnection>> connectionFlow, ConnectionPoolSettings settings, akka.event.LoggingAdapter log)
-
-