public abstract class HostConnectionPoolSpec.TopLevelApiClientServerImplementation extends java.lang.Object implements HostConnectionPoolSpec.ClientServerImplementation
Constructor and Description |
---|
TopLevelApiClientServerImplementation() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.pekko.stream.scaladsl.Source<Http.IncomingConnection,scala.concurrent.Future<Http.ServerBinding>> |
bindServerSource() |
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 |
failsHandlerInputWhenHandlerOutputFails()
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
|
public TopLevelApiClientServerImplementation()
protected abstract org.apache.pekko.stream.scaladsl.Source<Http.IncomingConnection,scala.concurrent.Future<Http.ServerBinding>> bindServerSource()
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)
public boolean failsHandlerInputWhenHandlerOutputFails()
HostConnectionPoolSpec.ClientServerImplementation
I haven't decided yet what the right behavior should be.
failsHandlerInputWhenHandlerOutputFails
in interface HostConnectionPoolSpec.ClientServerImplementation
public org.apache.pekko.stream.scaladsl.BidiFlow<HttpResponse,HttpResponse,HttpRequest,HttpRequest,scala.concurrent.Future<Http.OutgoingConnection>> get(org.apache.pekko.stream.SharedKillSwitch connectionKillSwitch)
HostConnectionPoolSpec.ClientServerImplementation
get
in interface HostConnectionPoolSpec.ClientServerImplementation