Instance Constructors
-
new
MergePreferred(secondaryPorts: Int, eagerComplete: Boolean)
Type Members
-
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
final
def
==(arg0: Any): Boolean
-
-
final
def
asInstanceOf[T0]: T0
-
-
def
clone(): AnyRef
-
-
final
def
createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
-
val
eagerComplete: Boolean
-
-
-
-
-
-
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
in(id: Int): Inlet[T]
-
def
initialAttributes: Attributes
-
final
def
isInstanceOf[T0]: Boolean
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
preferred: Inlet[T]
-
val
secondaryPorts: Int
-
-
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
-
-
Deprecated Value Members
-
def
finalize(): Unit
Merge several streams, taking elements as they arrive from input streams (picking from preferred when several have elements ready).
A
MergePreferred
has oneout
port, onepreferred
input port and 1 or more secondaryin
ports.Emits when one of the inputs has an element available, preferring a specified input if multiple have elements available
Backpressures when downstream backpressures
Completes when all upstreams complete (eagerComplete=false) or one upstream completes (eagerComplete=true), default value is
false
Cancels when downstream cancels