Package akka.stream.impl
Class CancelSink
- java.lang.Object
-
- akka.stream.impl.SinkModule<java.lang.Object,NotUsed>
-
- akka.stream.impl.CancelSink
-
- All Implemented Interfaces:
Graph<SinkShape<java.lang.Object>,NotUsed>,StreamLayout.AtomicModule<SinkShape<java.lang.Object>,NotUsed>
public final class CancelSink extends SinkModule<java.lang.Object,NotUsed>
INTERNAL API A sink that immediately cancels its upstream upon materialization.
-
-
Constructor Summary
Constructors Constructor Description CancelSink(Attributes attributes, SinkShape<java.lang.Object> shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributesattributes()scala.Tuple2<org.reactivestreams.Subscriber<java.lang.Object>,NotUsed>create(MaterializationContext context)protected SinkModule<java.lang.Object,NotUsed>newInstance(SinkShape<java.lang.Object> shape)SinkModule<java.lang.Object,NotUsed>withAttributes(Attributes attr)-
Methods inherited from class akka.stream.impl.SinkModule
amendShape, label, shape, toString, traversalBuilder
-
-
-
-
Constructor Detail
-
CancelSink
public CancelSink(Attributes attributes, SinkShape<java.lang.Object> shape)
-
-
Method Detail
-
attributes
public Attributes attributes()
- Specified by:
attributesin classSinkModule<java.lang.Object,NotUsed>
-
create
public scala.Tuple2<org.reactivestreams.Subscriber<java.lang.Object>,NotUsed> create(MaterializationContext context)
-
newInstance
protected SinkModule<java.lang.Object,NotUsed> newInstance(SinkShape<java.lang.Object> shape)
- Specified by:
newInstancein classSinkModule<java.lang.Object,NotUsed>
-
withAttributes
public SinkModule<java.lang.Object,NotUsed> withAttributes(Attributes attr)
-
-