public final class GracefulTerminatorStage extends org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<org.apache.pekko.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>,ServerTerminator>
Http.ServerBinding
.
Stage shape diagram:
+---+
fromNet Request -> | G | -> toUser Request
| T |
toNet Response <- | S | <- fromUser Response
+---+
Modifier and Type | Class and Description |
---|---|
class |
GracefulTerminatorStage.ConnectionTerminator |
Constructor and Description |
---|
GracefulTerminatorStage(ServerSettings settings) |
Modifier and Type | Method and Description |
---|---|
static 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() |
java.lang.String |
TerminationDeadlineTimerKey() |
org.apache.pekko.stream.Outlet<HttpResponse> |
toNet() |
org.apache.pekko.stream.Outlet<HttpRequest> |
toUser() |
addAttributes, async, async, async, createLogicAndMaterializedValue, getAttributes, initialAttributes, named, traversalBuilder, withAttributes
public GracefulTerminatorStage(ServerSettings settings)
public static org.apache.pekko.stream.scaladsl.BidiFlow<HttpResponse,HttpResponse,HttpRequest,HttpRequest,ServerTerminator> apply(org.apache.pekko.actor.ActorSystem system, ServerSettings serverSettings)
public org.apache.pekko.stream.Inlet<HttpRequest> fromNet()
public org.apache.pekko.stream.Outlet<HttpRequest> toUser()
public org.apache.pekko.stream.Inlet<HttpResponse> fromUser()
public org.apache.pekko.stream.Outlet<HttpResponse> toNet()
public org.apache.pekko.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest> shape()
public final java.lang.String TerminationDeadlineTimerKey()
public scala.Tuple2<org.apache.pekko.stream.stage.GraphStageLogic,ServerTerminator> createLogicAndMaterializedValue(org.apache.pekko.stream.Attributes inheritedAttributes)
createLogicAndMaterializedValue
in class org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<org.apache.pekko.stream.BidiShape<HttpResponse,HttpResponse,HttpRequest,HttpRequest>,ServerTerminator>