Package akka.stream.scaladsl
Class MergeHub$
- java.lang.Object
-
- akka.stream.scaladsl.MergeHub$
-
public class MergeHub$ extends java.lang.Object
A MergeHub is a special streaming hub that is able to collect streamed elements from a dynamic set of producers. It consists of two parts, aSource
and aSink
. TheSource
streams the element to a consumer from its merged inputs. Once the consumer has been materialized, theSource
returns a materialized value which is the correspondingSink
. ThisSink
can then be materialized arbitrary many times, where each of the new materializations will feed its consumed elements to the originalSource
.
-
-
Constructor Summary
Constructors Constructor Description MergeHub$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> boolean
$lessinit$greater$default$2()
INTERNAL API<T> Source<T,Sink<T,NotUsed>>
source()
<T> Source<T,Sink<T,NotUsed>>
source(int perProducerBufferSize)
<T> Source<T,scala.Tuple2<Sink<T,NotUsed>,akka.stream.scaladsl.MergeHub.DrainingControl>>
sourceWithDraining()
<T> Source<T,scala.Tuple2<Sink<T,NotUsed>,akka.stream.scaladsl.MergeHub.DrainingControl>>
sourceWithDraining(int perProducerBufferSize)
-
-
-
Field Detail
-
MODULE$
public static final MergeHub$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-