Package akka.stream.impl
Class ActorSubscriberSink<In>
- java.lang.Object
-
- akka.stream.impl.SinkModule<In,ActorRef>
-
- akka.stream.impl.ActorSubscriberSink<In>
-
- All Implemented Interfaces:
Graph<SinkShape<In>,ActorRef>,StreamLayout.AtomicModule<SinkShape<In>,ActorRef>
public final class ActorSubscriberSink<In> extends SinkModule<In,ActorRef>
INTERNAL API Creates and wraps an actor intoSubscriberfrom the givenprops, which should bePropsfor anActorSubscriber.
-
-
Constructor Summary
Constructors Constructor Description ActorSubscriberSink(Props props, Attributes attributes, SinkShape<In> shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributesattributes()scala.Tuple2<org.reactivestreams.Subscriber<In>,ActorRef>create(MaterializationContext context)protected SinkModule<In,ActorRef>newInstance(SinkShape<In> shape)SinkModule<In,ActorRef>withAttributes(Attributes attr)-
Methods inherited from class akka.stream.impl.SinkModule
amendShape, label, shape, toString, traversalBuilder
-
-
-
-
Constructor Detail
-
ActorSubscriberSink
public ActorSubscriberSink(Props props, Attributes attributes, SinkShape<In> shape)
-
-
Method Detail
-
attributes
public Attributes attributes()
- Specified by:
attributesin classSinkModule<In,ActorRef>
-
create
public scala.Tuple2<org.reactivestreams.Subscriber<In>,ActorRef> create(MaterializationContext context)
-
newInstance
protected SinkModule<In,ActorRef> newInstance(SinkShape<In> shape)
- Specified by:
newInstancein classSinkModule<In,ActorRef>
-
withAttributes
public SinkModule<In,ActorRef> withAttributes(Attributes attr)
-
-