Instance Constructors
-
new
Balance(outputPorts: Int, waitForAllDownstreams: Boolean)
Type Members
-
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Balance[T], B)
-
final
def
==(arg0: Any): Boolean
-
-
final
def
asInstanceOf[T0]: T0
-
-
def
clone(): AnyRef
-
-
final
def
createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
-
-
-
-
-
-
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
val
in: Inlet[T]
-
def
initialAttributes: Attributes
-
final
def
isInstanceOf[T0]: Boolean
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
val
outputPorts: 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
-
val
waitForAllDownstreams: Boolean
-
-
def
→[B](y: B): (Balance[T], B)
Deprecated Value Members
-
def
finalize(): Unit
Inherited by implicit conversion any2stringadd from
Balance[T] to any2stringadd[Balance[T]]
Inherited by implicit conversion StringFormat from
Balance[T] to StringFormat[Balance[T]]
Inherited by implicit conversion Ensuring from
Balance[T] to Ensuring[Balance[T]]
Inherited by implicit conversion ArrowAssoc from
Balance[T] to ArrowAssoc[Balance[T]]
Fan-out the stream to several streams. Each upstream element is emitted to the first available downstream consumer. It will not shut down until the subscriptions for at least two downstream subscribers have been established.
A
Balance
has onein
port and 2 or moreout
ports.Emits when any of the outputs stops backpressuring; emits the element to the first available output
Backpressures when all of the outputs backpressure
Completes when upstream completes
Cancels when all downstreams cancel