Package akka.stream.impl
Class LazySource<T,M>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<SourceShape<T>,scala.concurrent.Future<M>>
-
- akka.stream.impl.LazySource<T,M>
-
- All Implemented Interfaces:
Graph<SourceShape<T>,scala.concurrent.Future<M>>
public final class LazySource<T,M> extends GraphStageWithMaterializedValue<SourceShape<T>,scala.concurrent.Future<M>>
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description LazySource(scala.Function0<Source<T,M>> sourceFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,M>
LazySource<T,M>apply(scala.Function0<Source<T,M>> sourceFactory)
scala.Tuple2<GraphStageLogic,scala.concurrent.Future<M>>
createLogicAndMaterializedValue(Attributes inheritedAttributes)
protected 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.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, traversalBuilder, withAttributes
-
-
-
-
Method Detail
-
apply
public static <T,M> LazySource<T,M> apply(scala.Function0<Source<T,M>> sourceFactory)
-
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)
-
initialAttributes
protected Attributes initialAttributes()
- Overrides:
initialAttributes
in classGraphStageWithMaterializedValue<SourceShape<T>,scala.concurrent.Future<M>>
-
createLogicAndMaterializedValue
public scala.Tuple2<GraphStageLogic,scala.concurrent.Future<M>> createLogicAndMaterializedValue(Attributes inheritedAttributes)
- Specified by:
createLogicAndMaterializedValue
in classGraphStageWithMaterializedValue<SourceShape<T>,scala.concurrent.Future<M>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-