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 intoPublisher
from the givenprops
, which should beProps
for 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 Attributes
attributes()
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:
attributes
in classSourceModule<Out,ActorRef>
-
create
public scala.Tuple2<org.reactivestreams.Publisher<Out>,ActorRef> create(MaterializationContext context)
- Specified by:
create
in classSourceModule<Out,ActorRef>
-
newInstance
protected SourceModule<Out,ActorRef> newInstance(SourceShape<Out> shape)
- Specified by:
newInstance
in classSourceModule<Out,ActorRef>
-
withAttributes
public SourceModule<Out,ActorRef> withAttributes(Attributes attr)
-
-