Package akka.stream.impl.fusing
Class SubSource<T>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<SourceShape<T>>
-
- akka.stream.impl.fusing.SubSource<T>
-
- All Implemented Interfaces:
Graph<SourceShape<T>,NotUsed>
public final class SubSource<T> extends GraphStage<SourceShape<T>>
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description SubSource(java.lang.String name, AsyncCallback<SubSink.Command> externalCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeSubstream()
GraphStageLogic
createLogic(Attributes inheritedAttributes)
AsyncCallback<SubSink.Command>
externalCallback()
void
failSubstream(java.lang.Throwable ex)
Attributes
initialAttributes()
Outlet<T>
out()
void
pushSubstream(T elem)
SourceShape<T>
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.boolean
timeout(scala.concurrent.duration.FiniteDuration d)
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
-
SubSource
public SubSource(java.lang.String name, AsyncCallback<SubSink.Command> externalCallback)
-
-
Method Detail
-
completeSubstream
public void completeSubstream()
-
createLogic
public GraphStageLogic createLogic(Attributes inheritedAttributes)
- Specified by:
createLogic
in classGraphStage<SourceShape<T>>
-
externalCallback
public AsyncCallback<SubSink.Command> externalCallback()
-
failSubstream
public void failSubstream(java.lang.Throwable ex)
-
initialAttributes
public Attributes initialAttributes()
- Overrides:
initialAttributes
in classGraphStageWithMaterializedValue<SourceShape<T>,NotUsed>
-
pushSubstream
public void pushSubstream(T elem)
-
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)
-
timeout
public boolean timeout(scala.concurrent.duration.FiniteDuration d)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-