public final class SubSink<T> extends GraphStage<SinkShape<T>>
Modifier and Type | Class and Description |
---|---|
static class |
SubSink.Cancel$ |
static class |
SubSink.CancelScheduledBeforeMaterialization$
A Cancel command was scheduled before materialization
|
static interface |
SubSink.Command
Steady state: sink has been materialized, commands can be delivered through the callback
|
static class |
SubSink.CommandScheduledBeforeMaterialization
A command was scheduled before materialization
|
static class |
SubSink.RequestOne$ |
static class |
SubSink.RequestOneScheduledBeforeMaterialization$
A RequestOne command was scheduled before materialization
|
static interface |
SubSink.State |
static class |
SubSink.Uninitialized$
Not yet materialized and no command has been scheduled
|
Constructor and Description |
---|
SubSink(java.lang.String name,
scala.Function1<ActorSubscriberMessage,scala.runtime.BoxedUnit> externalCallback) |
Modifier and Type | Method and Description |
---|---|
static Graph<S,M> |
addAttributes(Attributes attr) |
static Graph<S,M> |
async() |
void |
cancelSubstream() |
GraphStageLogic |
createLogic(Attributes attr) |
static scala.Tuple2<GraphStageLogic,NotUsed> |
createLogicAndMaterializedValue(Attributes inheritedAttributes) |
Attributes |
initialAttributes() |
static StreamLayout.Module |
module() |
static Graph<S,M> |
named(java.lang.String name) |
void |
pullSubstream() |
SinkShape<T> |
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.
|
java.lang.String |
toString() |
static Graph<S,M> |
withAttributes(Attributes attr) |
createLogicAndMaterializedValue
module, withAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAttributes, async, named
public SubSink(java.lang.String name, scala.Function1<ActorSubscriberMessage,scala.runtime.BoxedUnit> externalCallback)
public static Graph<S,M> named(java.lang.String name)
public static Graph<S,M> async()
public static Graph<S,M> addAttributes(Attributes attr)
public static final StreamLayout.Module module()
public static final Graph<S,M> withAttributes(Attributes attr)
public static final scala.Tuple2<GraphStageLogic,NotUsed> createLogicAndMaterializedValue(Attributes inheritedAttributes)
public Attributes initialAttributes()
initialAttributes
in class GraphStageWithMaterializedValue<SinkShape<T>,NotUsed>
public SinkShape<T> shape()
Graph
public void pullSubstream()
public void cancelSubstream()
public GraphStageLogic createLogic(Attributes attr)
createLogic
in class GraphStage<SinkShape<T>>
public java.lang.String toString()
toString
in class java.lang.Object