Class MergeHub$
- java.lang.Object
-
- akka.stream.scaladsl.MergeHub$
-
public class MergeHub$ extends java.lang.ObjectCreates aSourcethat emits elements merged from a dynamic set of producers. After theSourcereturned by this method is materialized, it returns aSinkas a materialized value. ThisSinkcan be materialized arbitrary many times and each of the materializations will feed the elements into the originalSource.Every new materialization of the
Sourceresults in a new, independent hub, which materializes to its ownSinkfor feeding that materialization.Completed or failed
Sinks are simply removed. Once theSourceis cancelled, the Hub is considered closed and any new producers using theSinkwill be cancelled.param: perProducerBufferSize Buffer space used per producer. Default value is 16.
-
-
Constructor Summary
Constructors Constructor Description MergeHub$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Source<T,Sink<T,NotUsed>>source()Creates aSourcethat emits elements merged from a dynamic set of producers.<T> Source<T,Sink<T,NotUsed>>source(int perProducerBufferSize)Creates aSourcethat emits elements merged from a dynamic set of producers.
-
-
-
Field Detail
-
MODULE$
public static final MergeHub$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
source
public <T> Source<T,Sink<T,NotUsed>> source(int perProducerBufferSize)
Creates aSourcethat emits elements merged from a dynamic set of producers. After theSourcereturned by this method is materialized, it returns aSinkas a materialized value. ThisSinkcan be materialized arbitrary many times and each of the materializations will feed the elements into the originalSource.Every new materialization of the
Sourceresults in a new, independent hub, which materializes to its ownSinkfor feeding that materialization.Completed or failed
Sinks are simply removed. Once theSourceis cancelled, the Hub is considered closed and any new producers using theSinkwill be cancelled.- Parameters:
perProducerBufferSize- Buffer space used per producer. Default value is 16.- Returns:
- (undocumented)
-
source
public <T> Source<T,Sink<T,NotUsed>> source()
Creates aSourcethat emits elements merged from a dynamic set of producers. After theSourcereturned by this method is materialized, it returns aSinkas a materialized value. ThisSinkcan be materialized arbitrary many times and each of the materializations will feed the elements into the originalSource.Every new materialization of the
Sourceresults in a new, independent hub, which materializes to its ownSinkfor feeding that materialization.Completed or failed
Sinks are simply removed. Once theSourceis cancelled, the Hub is considered closed and any new producers using theSinkwill be cancelled.- Returns:
- (undocumented)
-
-