Class HostConnectionPoolSpec.TopLevelApiClientServerImplementation
java.lang.Object
org.apache.pekko.http.impl.engine.client.HostConnectionPoolSpec.TopLevelApiClientServerImplementation
- All Implemented Interfaces:
HostConnectionPoolSpec.ClientServerImplementation
- Direct Known Subclasses:
HostConnectionPoolSpec.PekkoHttpEngineTCP$
,HostConnectionPoolSpec.PekkoHttpEngineTLS$
- Enclosing class:
- HostConnectionPoolSpec
public abstract class HostConnectionPoolSpec.TopLevelApiClientServerImplementation
extends Object
implements HostConnectionPoolSpec.ClientServerImplementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.pekko.stream.scaladsl.Source<Http.IncomingConnection,
scala.concurrent.Future<Http.ServerBinding>> protected abstract org.apache.pekko.stream.scaladsl.Flow<HttpRequest,
HttpResponse, scala.concurrent.Future<Http.OutgoingConnection>> clientConnectionFlow
(Http.ServerBinding serverBinding, org.apache.pekko.stream.SharedKillSwitch connectionKillSwitch) boolean
Specifies if the transport implementation will fail the handler request input side if an error is encountered at the response output side.org.apache.pekko.stream.scaladsl.BidiFlow<HttpResponse,
HttpResponse, HttpRequest, HttpRequest, scala.concurrent.Future<Http.OutgoingConnection>> get
(org.apache.pekko.stream.SharedKillSwitch connectionKillSwitch) Returns a client / server implementation that include the kill switch flow in the middle
-
Constructor Details
-
TopLevelApiClientServerImplementation
public TopLevelApiClientServerImplementation()
-
-
Method Details
-
bindServerSource
protected abstract org.apache.pekko.stream.scaladsl.Source<Http.IncomingConnection,scala.concurrent.Future<Http.ServerBinding>> bindServerSource() -
failsHandlerInputWhenHandlerOutputFails
public boolean failsHandlerInputWhenHandlerOutputFails()Description copied from interface:HostConnectionPoolSpec.ClientServerImplementation
Specifies if the transport implementation will fail the handler request input side if an error is encountered at the response output side.I haven't decided yet what the right behavior should be.
- Specified by:
failsHandlerInputWhenHandlerOutputFails
in interfaceHostConnectionPoolSpec.ClientServerImplementation
- Returns:
- (undocumented)
-