Package akka.stream.impl
Class SubscriberSource<Out>
- java.lang.Object
-
- akka.stream.impl.SourceModule<Out,org.reactivestreams.Subscriber<Out>>
-
- akka.stream.impl.SubscriberSource<Out>
-
- All Implemented Interfaces:
Graph<SourceShape<Out>,org.reactivestreams.Subscriber<Out>>,StreamLayout.AtomicModule<SourceShape<Out>,org.reactivestreams.Subscriber<Out>>
public final class SubscriberSource<Out> extends SourceModule<Out,org.reactivestreams.Subscriber<Out>>
INTERNAL API Holds aSubscriberrepresenting the input side of the flow. TheSubscribercan later be connected to an upstreamPublisher.
-
-
Constructor Summary
Constructors Constructor Description SubscriberSource(Attributes attributes, SourceShape<Out> shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributesattributes()scala.Tuple2<org.reactivestreams.Publisher<Out>,org.reactivestreams.Subscriber<Out>>create(MaterializationContext context)protected SourceModule<Out,org.reactivestreams.Subscriber<Out>>newInstance(SourceShape<Out> shape)SourceModule<Out,org.reactivestreams.Subscriber<Out>>withAttributes(Attributes attr)-
Methods inherited from class akka.stream.impl.SourceModule
amendShape, label, shape, toString, traversalBuilder
-
-
-
-
Constructor Detail
-
SubscriberSource
public SubscriberSource(Attributes attributes, SourceShape<Out> shape)
-
-
Method Detail
-
attributes
public Attributes attributes()
- Specified by:
attributesin classSourceModule<Out,org.reactivestreams.Subscriber<Out>>
-
create
public scala.Tuple2<org.reactivestreams.Publisher<Out>,org.reactivestreams.Subscriber<Out>> create(MaterializationContext context)
- Specified by:
createin classSourceModule<Out,org.reactivestreams.Subscriber<Out>>
-
newInstance
protected SourceModule<Out,org.reactivestreams.Subscriber<Out>> newInstance(SourceShape<Out> shape)
- Specified by:
newInstancein classSourceModule<Out,org.reactivestreams.Subscriber<Out>>
-
withAttributes
public SourceModule<Out,org.reactivestreams.Subscriber<Out>> withAttributes(Attributes attr)
-
-