Package akka.stream.impl.fusing
Class GraphStages.FutureSource<T>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<SourceShape<T>>
-
- akka.stream.impl.fusing.GraphStages.FutureSource<T>
-
- All Implemented Interfaces:
Graph<SourceShape<T>,NotUsed>
- Enclosing class:
- GraphStages
public static final class GraphStages.FutureSource<T> extends GraphStage<SourceShape<T>>
-
-
Constructor Summary
Constructors Constructor Description FutureSource(scala.concurrent.Future<T> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphStageLogic
createLogic(Attributes attr)
scala.concurrent.Future<T>
future()
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()
-
Methods inherited from class akka.stream.stage.GraphStage
createLogicAndMaterializedValue
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, traversalBuilder, withAttributes
-
-
-
-
Constructor Detail
-
FutureSource
public FutureSource(scala.concurrent.Future<T> future)
-
-
Method Detail
-
createLogic
public GraphStageLogic createLogic(Attributes attr)
- Specified by:
createLogic
in classGraphStage<SourceShape<T>>
-
future
public scala.concurrent.Future<T> future()
-
initialAttributes
public Attributes initialAttributes()
- Overrides:
initialAttributes
in classGraphStageWithMaterializedValue<SourceShape<T>,NotUsed>
-
shape
public SourceShape<T> shape()
Description copied from interface:Graph
The shape of a graph is all that is externally visible: its inlets and outlets.- Returns:
- (undocumented)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-