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 on
Http.ServerBinding
.
Stage shape diagram:
+---+
fromNet Request -> | G | -> toUser Request
| T |
toNet Response <- | S | <- fromUser Response
+---+
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface akka.stream.Graph
akka.stream.Graph.GraphMapMatVal<S extends akka.stream.Shape,
M extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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()
final String
akka.stream.Outlet<HttpResponse>
toNet()
akka.stream.Outlet<HttpRequest>
toUser()
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
addAttributes, async, async, async, createLogicAndMaterializedValue, getAttributes, initialAttributes, named, traversalBuilder, withAttributes
-
Constructor Details
-
GracefulTerminatorStage
-
-
Method Details
-
apply
public static akka.stream.scaladsl.BidiFlow<HttpResponse,HttpResponse, applyHttpRequest, HttpRequest, ServerTerminator> (akka.actor.ActorSystem system, ServerSettings serverSettings) -
fromNet
-
toUser
-
fromUser
-
toNet
-
shape
-
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>
-