- java.lang.Object
-
- io.helidon.common.reactive.ConcatPublisher<T>
-
- Type Parameters:
T- item type
- All Implemented Interfaces:
Multi<T>,Subscribable<T>,Flow.Publisher<T>
public class ConcatPublisher<T> extends Object implements Flow.Publisher<T>, Multi<T>
Concat streams to one.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> ConcatPublisher<T>create(Flow.Publisher<T> firstPublisher, Flow.Publisher<T> secondPublisher)Create newConcatPublisher.voidsubscribe(Flow.Subscriber<? super T> subscriber)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.common.reactive.Multi
collect, collectList, distinct, dropWhile, filter, first, flatMap, flatMapIterable, forEach, limit, map, peek, skip, takeWhile
-
Methods inherited from interface io.helidon.common.reactive.Subscribable
onComplete, onError, onErrorResume, onErrorResumeWith, onTerminate, subscribe, subscribe, subscribe, subscribe
-
-
-
-
Method Detail
-
create
public static <T> ConcatPublisher<T> create(Flow.Publisher<T> firstPublisher, Flow.Publisher<T> secondPublisher)
Create newConcatPublisher.- Type Parameters:
T- item type- Parameters:
firstPublisher- first streamsecondPublisher- second stream- Returns:
ConcatPublisher
-
subscribe
public void subscribe(Flow.Subscriber<? super T> subscriber)
- Specified by:
subscribein interfaceFlow.Publisher<T>
-
-