Package akka.http.impl.engine.server
Class GracefulTerminatorStage
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<akka.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>,ServerTerminator>
-
- akka.http.impl.engine.server.GracefulTerminatorStage
-
- All Implemented Interfaces:
akka.stream.Graph<akka.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>,ServerTerminator>
public final class GracefulTerminatorStage extends akka.stream.stage.GraphStageWithMaterializedValue<akka.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>,ServerTerminator>
INTERNAL API: See detailed docs termination process onHttp.ServerBinding
.Stage shape diagram:
+---+ fromNet Request -> | G | -> toUser Request | T | toNet Response <- | S | <- fromUser Response +---+
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GracefulTerminatorStage.ConnectionTerminator
-
Constructor Summary
Constructors Constructor Description GracefulTerminatorStage(ServerSettings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static akka.stream.scaladsl.BidiFlow<HttpResponse,HttpResponse,HttpRequest,HttpRequest,ServerTerminator>
apply(akka.actor.ActorSystem system, ServerSettings serverSettings)
scala.Tuple2<akka.stream.stage.GraphStageLogic,ServerTerminator>
createLogicAndMaterializedValue(akka.stream.Attributes inheritedAttributes)
akka.stream.Inlet<HttpRequest>
fromNet()
akka.stream.Inlet<HttpResponse>
fromUser()
akka.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>
shape()
java.lang.String
TerminationDeadlineTimerKey()
akka.stream.Outlet<HttpResponse>
toNet()
akka.stream.Outlet<HttpRequest>
toUser()
-
-
-
Constructor Detail
-
GracefulTerminatorStage
public GracefulTerminatorStage(ServerSettings settings)
-
-
Method Detail
-
apply
public static akka.stream.scaladsl.BidiFlow<HttpResponse,HttpResponse,HttpRequest,HttpRequest,ServerTerminator> apply(akka.actor.ActorSystem system, ServerSettings serverSettings)
-
fromNet
public akka.stream.Inlet<HttpRequest> fromNet()
-
toUser
public akka.stream.Outlet<HttpRequest> toUser()
-
fromUser
public akka.stream.Inlet<HttpResponse> fromUser()
-
toNet
public akka.stream.Outlet<HttpResponse> toNet()
-
shape
public akka.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest> shape()
-
TerminationDeadlineTimerKey
public final java.lang.String TerminationDeadlineTimerKey()
-
createLogicAndMaterializedValue
public scala.Tuple2<akka.stream.stage.GraphStageLogic,ServerTerminator> createLogicAndMaterializedValue(akka.stream.Attributes inheritedAttributes)
- Specified by:
createLogicAndMaterializedValue
in classakka.stream.stage.GraphStageWithMaterializedValue<akka.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>,ServerTerminator>
-
-