Package akka.stream.impl.fusing
Class SubSink<T>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<SinkShape<T>>
-
- akka.stream.impl.fusing.SubSink<T>
-
public final class SubSink<T> extends GraphStage<SinkShape<T>>
INTERNAL API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubSink.Cancel
static class
SubSink.Cancel$
static class
SubSink.CancelScheduledBeforeMaterialization
A Cancel command was scheduled before materializationstatic class
SubSink.CancelScheduledBeforeMaterialization$
static interface
SubSink.Command
Steady state: sink has been materialized, commands can be delivered through the callbackstatic class
SubSink.CommandScheduledBeforeMaterialization
A command was scheduled before materializationstatic class
SubSink.RequestOne$
static class
SubSink.RequestOneScheduledBeforeMaterialization$
A RequestOne command was scheduled before materializationstatic interface
SubSink.State
static class
SubSink.Uninitialized$
Not yet materialized and no command has been scheduled-
Nested classes/interfaces inherited from interface akka.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M>
-
-
Constructor Summary
Constructors Constructor Description SubSink(java.lang.String name, scala.Function1<ActorSubscriberMessage,scala.runtime.BoxedUnit> externalCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelSubstream()
void
cancelSubstream(java.lang.Throwable cause)
GraphStageLogic
createLogic(Attributes attr)
Attributes
initialAttributes()
void
pullSubstream()
SinkShape<T>
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.java.lang.String
toString()
-
Methods inherited from class akka.stream.stage.GraphStage
createLogicAndMaterializedValue
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, traversalBuilder, withAttributes
-
-
-
-
Constructor Detail
-
SubSink
public SubSink(java.lang.String name, scala.Function1<ActorSubscriberMessage,scala.runtime.BoxedUnit> externalCallback)
-
-
Method Detail
-
initialAttributes
public Attributes initialAttributes()
- Overrides:
initialAttributes
in classGraphStageWithMaterializedValue<SinkShape<T>,NotUsed>
-
shape
public SinkShape<T> shape()
Description copied from interface:Graph
The shape of a graph is all that is externally visible: its inlets and outlets.
-
pullSubstream
public void pullSubstream()
-
cancelSubstream
public void cancelSubstream()
-
cancelSubstream
public void cancelSubstream(java.lang.Throwable cause)
-
createLogic
public GraphStageLogic createLogic(Attributes attr)
- Specified by:
createLogic
in classGraphStage<SinkShape<T>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-