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 intoSubscriber
from the givenprops
, which should beProps
for 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 Attributes
attributes()
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:
attributes
in 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:
newInstance
in classSinkModule<In,ActorRef>
-
withAttributes
public SinkModule<In,ActorRef> withAttributes(Attributes attr)
-
-