AbstractGraphStageWithMaterializedValue

org.apache.pekko.stream.stage.AbstractGraphStageWithMaterializedValue

Java API: A GraphStage represents a reusable graph stream processing operator.

Extend this AbstractGraphStageWithMaterializedValue if you want to provide a materialized value, represented by the type parameter M. If your GraphStage does not need to provide a materialized value you can instead extend GraphStage which materializes a NotUsed value.

A GraphStage consists of a Shape which describes its input and output ports and a factory function that creates a GraphStageLogic which implements the processing logic that ties the ports together.

See also GraphStageWithMaterializedValue for Scala DSL for this operator.

Attributes

Source
GraphStage.scala
Graph
Supertypes
trait Graph[S, M]
class Object
trait Matchable
class Any

Members list

Type members

Inherited types

type Shape = S

Type-level accessor for the shape parameter of this graph.

Type-level accessor for the shape parameter of this graph.

Attributes

Inherited from:
Graph
Source
Graph.scala

Value members

Abstract methods

Attributes

Source
GraphStage.scala

Concrete methods

final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, M)

Attributes

Source
GraphStage.scala

Inherited methods

def addAttributes(attr: Attributes): Graph[S, M]

Add the given attributes to this Graph. If the specific attribute was already present on this graph this means the added attribute will be more specific than the existing one. If this Source is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Add the given attributes to this Graph. If the specific attribute was already present on this graph this means the added attribute will be more specific than the existing one. If this Source is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Attributes

Inherited from:
Graph
Source
Graph.scala
def async(dispatcher: String, inputBufferSize: Int): Graph[S, M]

Put an asynchronous boundary around this Graph

Put an asynchronous boundary around this Graph

Value parameters

dispatcher

Run the graph on this dispatcher

inputBufferSize

Set the input buffer to this size for the graph

Attributes

Inherited from:
Graph
Source
Graph.scala
def async(dispatcher: String): Graph[S, M]

Put an asynchronous boundary around this Graph

Put an asynchronous boundary around this Graph

Value parameters

dispatcher

Run the graph on this dispatcher

Attributes

Inherited from:
Graph
Source
Graph.scala
def async: Graph[S, M]

Put an asynchronous boundary around this Graph

Put an asynchronous boundary around this Graph

Attributes

Inherited from:
Graph
Source
Graph.scala

Attributes

Inherited from:
Graph
Source
Graph.scala
protected def initialAttributes: Attributes

Attributes

Inherited from:
GraphStageWithMaterializedValue
Source
GraphStage.scala
def named(name: String): Graph[S, M]

Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. #none is returned.

Specifies the name of the Graph. If the name is null or empty the name is ignored, i.e. #none is returned.

Attributes

Inherited from:
Graph
Source
Graph.scala
def shape: S

The shape of a graph is all that is externally visible: its inlets and outlets.

The shape of a graph is all that is externally visible: its inlets and outlets.

Attributes

Inherited from:
Graph
Source
Graph.scala
final override def withAttributes(attr: Attributes): Graph[S, M]

Replace the attributes of this Flow with the given ones. If this Flow is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Replace the attributes of this Flow with the given ones. If this Flow is a composite of multiple graphs, new attributes on the composite will be less specific than attributes set directly on the individual graphs of the composite.

Attributes

Definition Classes
Inherited from:
GraphStageWithMaterializedValue
Source
GraphStage.scala