Class GracefulTerminatorStage
java.lang.Object
org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<org.apache.pekko.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>,ServerTerminator>
org.apache.pekko.http.impl.engine.server.GracefulTerminatorStage
- All Implemented Interfaces:
org.apache.pekko.stream.Graph<org.apache.pekko.stream.BidiShape<HttpResponse,HttpResponse, HttpRequest, HttpRequest>, ServerTerminator>
public final class GracefulTerminatorStage
extends org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<org.apache.pekko.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 org.apache.pekko.stream.Graph
org.apache.pekko.stream.Graph.GraphMapMatVal<S extends org.apache.pekko.stream.Shape,M extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.pekko.stream.scaladsl.BidiFlow<HttpResponse,HttpResponse, HttpRequest, HttpRequest, ServerTerminator> apply(org.apache.pekko.actor.ActorSystem system, ServerSettings serverSettings) scala.Tuple2<org.apache.pekko.stream.stage.GraphStageLogic,ServerTerminator> createLogicAndMaterializedValue(org.apache.pekko.stream.Attributes inheritedAttributes) org.apache.pekko.stream.Inlet<HttpRequest>fromNet()org.apache.pekko.stream.Inlet<HttpResponse>fromUser()org.apache.pekko.stream.BidiShape<HttpResponse,HttpResponse, HttpRequest, HttpRequest> shape()final Stringorg.apache.pekko.stream.Outlet<HttpResponse>toNet()org.apache.pekko.stream.Outlet<HttpRequest>toUser()Methods inherited from class org.apache.pekko.stream.stage.GraphStageWithMaterializedValue
addAttributes, async, async, async, createLogicAndMaterializedValue, getAttributes, initialAttributes, named, traversalBuilder, withAttributes
-
Constructor Details
-
GracefulTerminatorStage
-
-
Method Details
-
apply
public static org.apache.pekko.stream.scaladsl.BidiFlow<HttpResponse,HttpResponse, applyHttpRequest, HttpRequest, ServerTerminator> (org.apache.pekko.actor.ActorSystem system, ServerSettings serverSettings) -
fromNet
-
toUser
-
fromUser
-
toNet
-
shape
-
TerminationDeadlineTimerKey
-
createLogicAndMaterializedValue
public scala.Tuple2<org.apache.pekko.stream.stage.GraphStageLogic,ServerTerminator> createLogicAndMaterializedValue(org.apache.pekko.stream.Attributes inheritedAttributes) - Specified by:
createLogicAndMaterializedValuein classorg.apache.pekko.stream.stage.GraphStageWithMaterializedValue<org.apache.pekko.stream.BidiShape<HttpResponse,HttpResponse, HttpRequest, HttpRequest>, ServerTerminator>
-