public static final class GraphStages.SingleSource<T> extends GraphStage<SourceShape<T>>
Constructor and Description |
---|
SingleSource(T elem) |
Modifier and Type | Method and Description |
---|---|
GraphStageLogic |
createLogic(Attributes attr) |
T |
elem() |
Attributes |
initialAttributes() |
Outlet<T> |
out() |
SourceShape<T> |
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.
|
java.lang.String |
toString() |
createLogicAndMaterializedValue
module, withAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAttributes, async, named
public SingleSource(T elem)
public T elem()
public Attributes initialAttributes()
initialAttributes
in class GraphStageWithMaterializedValue<SourceShape<T>,NotUsed>
public SourceShape<T> shape()
Graph
public GraphStageLogic createLogic(Attributes attr)
createLogic
in class GraphStage<SourceShape<T>>
public java.lang.String toString()
toString
in class java.lang.Object