Class

org.squbs.stream

TriggerMerge

Related Doc: package stream

Permalink

final class TriggerMerge[T] extends GraphStage[FanInShape2[T, TriggerEvent, T]]

Merge two streams, taking elements as they arrive from an input stream, and a trigger stream to start/stop the flow (pulling from trigger stream first, wait until true, then pulling from the input stream). (keep pulling from trigger stream, wait until false, then stop pulling from the input stream). (Repeat over)

A TriggerMerge has one out port, one in port and one trigger input port.

Emits when the input stream has an element available, and the triggered is true Note that, trigger only impact the future input element(s), always allowing the in-flight element to go through

Linear Supertypes
GraphStage[FanInShape2[T, TriggerEvent, T]], GraphStageWithMaterializedValue[FanInShape2[T, TriggerEvent, T], NotUsed], Graph[FanInShape2[T, TriggerEvent, T], NotUsed], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TriggerMerge
  2. GraphStage
  3. GraphStageWithMaterializedValue
  4. Graph
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TriggerMerge(eagerComplete: Boolean = false)

    Permalink

Type Members

  1. type Shape = FanInShape2[T, TriggerEvent, T]

    Permalink
    Definition Classes
    Graph

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAttributes(attr: Attributes): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]

    Permalink
    Definition Classes
    Graph
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def async(dispatcher: String, inputBufferSize: Int): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]

    Permalink
    Definition Classes
    Graph
  7. def async(dispatcher: String): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]

    Permalink
    Definition Classes
    Graph
  8. def async: Graph[FanInShape2[T, TriggerEvent, T], NotUsed]

    Permalink
    Definition Classes
    Graph
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def createLogic(inheritedAttributes: Attributes): GraphStageLogic

    Permalink
    Definition Classes
    TriggerMerge → GraphStage
  11. final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)

    Permalink
    Definition Classes
    GraphStage → GraphStageWithMaterializedValue
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. val in: Inlet[T]

    Permalink
  18. def initialAttributes: Attributes

    Permalink
    Definition Classes
    TriggerMerge → GraphStageWithMaterializedValue
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def named(name: String): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]

    Permalink
    Definition Classes
    Graph
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def out: Outlet[T]

    Permalink
  25. val shape: FanInShape2[T, TriggerEvent, T]

    Permalink
    Definition Classes
    TriggerMerge → Graph
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    TriggerMerge → AnyRef → Any
  28. val trigger: Inlet[TriggerEvent]

    Permalink
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def withAttributes(attr: Attributes): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]

    Permalink
    Definition Classes
    GraphStageWithMaterializedValue → Graph

Inherited from GraphStage[FanInShape2[T, TriggerEvent, T]]

Inherited from GraphStageWithMaterializedValue[FanInShape2[T, TriggerEvent, T], NotUsed]

Inherited from Graph[FanInShape2[T, TriggerEvent, T], NotUsed]

Inherited from AnyRef

Inherited from Any

Ungrouped