final
class
TriggerMerge[T] extends GraphStage[FanInShape2[T, TriggerEvent, T]]
Instance Constructors
-
new
TriggerMerge(eagerComplete: Boolean = false)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
addAttributes(attr: Attributes): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]
-
final
def
asInstanceOf[T0]: T0
-
def
async(dispatcher: String, inputBufferSize: Int): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]
-
def
async(dispatcher: String): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]
-
def
async: Graph[FanInShape2[T, TriggerEvent, T], NotUsed]
-
def
clone(): AnyRef
-
def
createLogic(inheritedAttributes: Attributes): GraphStageLogic
-
final
def
createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
val
in: Inlet[T]
-
def
initialAttributes: Attributes
-
final
def
isInstanceOf[T0]: Boolean
-
def
named(name: String): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
out: Outlet[T]
-
val
shape: FanInShape2[T, TriggerEvent, T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
final
def
withAttributes(attr: Attributes): Graph[FanInShape2[T, TriggerEvent, T], NotUsed]
Inherited from GraphStageWithMaterializedValue[FanInShape2[T, TriggerEvent, T], NotUsed]
Inherited from Graph[FanInShape2[T, TriggerEvent, T], NotUsed]
Inherited from AnyRef
Inherited from Any
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 oneout
port, onein
port and onetrigger
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