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 aSubscriber
representing the input side of the flow. TheSubscriber
can 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 Attributes
attributes()
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:
attributes
in classSourceModule<Out,org.reactivestreams.Subscriber<Out>>
-
create
public scala.Tuple2<org.reactivestreams.Publisher<Out>,org.reactivestreams.Subscriber<Out>> create(MaterializationContext context)
- Specified by:
create
in classSourceModule<Out,org.reactivestreams.Subscriber<Out>>
-
newInstance
protected SourceModule<Out,org.reactivestreams.Subscriber<Out>> newInstance(SourceShape<Out> shape)
- Specified by:
newInstance
in classSourceModule<Out,org.reactivestreams.Subscriber<Out>>
-
withAttributes
public SourceModule<Out,org.reactivestreams.Subscriber<Out>> withAttributes(Attributes attr)
-
-