public abstract class SourceModule<Out,Mat> extends StreamLayout.AtomicModule
Constructor and Description |
---|
SourceModule(SourceShape<Out> shape) |
Modifier and Type | Method and Description |
---|---|
protected SourceShape<Out> |
amendShape(Attributes attr) |
StreamLayout.AtomicModule |
carbonCopy()
The purpose of this method is to create a copy to be included in a larger
graph such that port identity clashes are avoided.
|
abstract scala.Tuple2<org.reactivestreams.Publisher<Out>,Mat> |
create(MaterializationContext context) |
protected java.lang.String |
label() |
protected abstract SourceModule<Out,Mat> |
newInstance(SourceShape<Out> shape) |
StreamLayout.AtomicModule |
replaceShape(Shape s)
Verify that the given Shape has the same ports and return a new module with that shape.
|
SourceShape<Out> |
shape() |
java.lang.String |
toString() |
downstreams, inPorts, outPorts, subModules, upstreams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
attributes, compose, compose, composeNoMat, equals, fuse, fuse, hashCode, isAtomic, isBidiFlow, isCopied, isFlow, isFused, isRunnable, isSealed, isSink, isSource, materializedValueComputation, transformMaterializedValue, wire, withAttributes
public SourceModule(SourceShape<Out> shape)
public SourceShape<Out> shape()
protected java.lang.String label()
public final java.lang.String toString()
toString
in class java.lang.Object
public abstract scala.Tuple2<org.reactivestreams.Publisher<Out>,Mat> create(MaterializationContext context)
public StreamLayout.AtomicModule replaceShape(Shape s)
StreamLayout.Module
Please note that this method MUST NOT be implemented using a CopiedModule since the purpose of replaceShape can also be to rearrange the ports (as in BidiFlow.reversed) and that purpose would be defeated.
s
- (undocumented)protected abstract SourceModule<Out,Mat> newInstance(SourceShape<Out> shape)
public StreamLayout.AtomicModule carbonCopy()
StreamLayout.Module
protected SourceShape<Out> amendShape(Attributes attr)