Package akka.stream.impl
Class ActorPublisherSource<Out>
- java.lang.Object
-
- akka.stream.impl.SourceModule<Out,ActorRef>
-
- akka.stream.impl.ActorPublisherSource<Out>
-
- All Implemented Interfaces:
Graph<SourceShape<Out>,ActorRef>,StreamLayout.AtomicModule<SourceShape<Out>,ActorRef>
public final class ActorPublisherSource<Out> extends SourceModule<Out,ActorRef>
INTERNAL API Creates and wraps an actor intoPublisherfrom the givenprops, which should bePropsfor anActorPublisher.
-
-
Constructor Summary
Constructors Constructor Description ActorPublisherSource(Props props, 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>,ActorRef>create(MaterializationContext context)protected SourceModule<Out,ActorRef>newInstance(SourceShape<Out> shape)SourceModule<Out,ActorRef>withAttributes(Attributes attr)-
Methods inherited from class akka.stream.impl.SourceModule
amendShape, label, shape, toString, traversalBuilder
-
-
-
-
Constructor Detail
-
ActorPublisherSource
public ActorPublisherSource(Props props, Attributes attributes, SourceShape<Out> shape)
-
-
Method Detail
-
attributes
public Attributes attributes()
- Specified by:
attributesin classSourceModule<Out,ActorRef>
-
create
public scala.Tuple2<org.reactivestreams.Publisher<Out>,ActorRef> create(MaterializationContext context)
- Specified by:
createin classSourceModule<Out,ActorRef>
-
newInstance
protected SourceModule<Out,ActorRef> newInstance(SourceShape<Out> shape)
- Specified by:
newInstancein classSourceModule<Out,ActorRef>
-
withAttributes
public SourceModule<Out,ActorRef> withAttributes(Attributes attr)
-
-