public final class UnfoldResourceSourceAsync<T,S> extends GraphStage<SourceShape<T>>
Constructor and Description |
---|
UnfoldResourceSourceAsync(scala.Function0<scala.concurrent.Future<S>> create,
scala.Function1<S,scala.concurrent.Future<scala.Option<T>>> readData,
scala.Function1<S,scala.concurrent.Future<Done>> close) |
Modifier and Type | Method and Description |
---|---|
GraphStageLogic |
createLogic(Attributes inheritedAttributes) |
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 SourceShape<T> shape()
Graph
public Attributes initialAttributes()
initialAttributes
in class GraphStageWithMaterializedValue<SourceShape<T>,NotUsed>
public GraphStageLogic createLogic(Attributes inheritedAttributes)
createLogic
in class GraphStage<SourceShape<T>>
public java.lang.String toString()
toString
in class java.lang.Object