class ResultCompletionSink extends GraphStageWithMaterializedValue[SinkShape[ByteString], Future[Seq[SerializedResult]]]
Sink materializes to
CompleteResult
if one and only one element passes from upstream before it is finished. Otherwise produces
IncompleteResultSource
. Running of
IncompleteResultSource
source will consume this
ResultCompletionSink
upstream.
- Source
- BufferStreams.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ResultCompletionSink
- GraphStageWithMaterializedValue
- Graph
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ResultCompletionSink(cleanupFun: (Option[Throwable]) => Unit = null, resultCount: Int = 1)(implicit ec: ExecutionContext)
- cleanupFun
cleanupFun is invoked on onUpstreamFinish() and postStop() method calls.
- resultCount
indicates how many copies of SerializedResult sink should materialize. This is useful for IncompleteResultSource's result: Source[ByteString, _] so that they can be consumed for various purposes. Value must be greater than zero.
Type Members
- type Shape = SinkShape[ByteString]
- Definition Classes
- Graph
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAttributes(attr: Attributes): Graph[SinkShape[ByteString], Future[Seq[SerializedResult]]]
- Definition Classes
- Graph
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def async(dispatcher: String, inputBufferSize: Int): Graph[SinkShape[ByteString], Future[Seq[SerializedResult]]]
- Definition Classes
- Graph
- def async(dispatcher: String): Graph[SinkShape[ByteString], Future[Seq[SerializedResult]]]
- Definition Classes
- Graph
- def async: Graph[SinkShape[ByteString], Future[Seq[SerializedResult]]]
- Definition Classes
- Graph
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createLogicAndMaterializedValue(attrs: Attributes): (GraphStageLogic { def streamingHandler(init: akka.util.ByteString): akka.stream.stage.InHandler{object Sources} }, Future[Seq[SerializedResult]])
- Definition Classes
- ResultCompletionSink → GraphStageWithMaterializedValue
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getAttributes: Attributes
- Definition Classes
- Graph
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val in: Inlet[ByteString]
- def initialAttributes: Attributes
- Attributes
- protected
- Definition Classes
- GraphStageWithMaterializedValue
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def named(name: String): Graph[SinkShape[ByteString], Future[Seq[SerializedResult]]]
- Definition Classes
- Graph
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val shape: SinkShape[ByteString]
- Definition Classes
- ResultCompletionSink → Graph
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def withAttributes(attr: Attributes): Graph[SinkShape[ByteString], Future[Seq[SerializedResult]]]
- Definition Classes
- GraphStageWithMaterializedValue → Graph