- 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 final 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
.void
subscribe(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, collect, collectList, collectStream, compose, defaultIfEmpty, defaultIfEmpty, distinct, dropWhile, filter, first, flatMap, flatMap, flatMapCompletionStage, flatMapIterable, flatMapIterable, flatMapOptional, forEach, ifEmpty, ignoreElements, limit, log, log, log, log, map, observeOn, observeOn, onCancel, onComplete, onCompleteResume, onCompleteResumeWith, onError, onErrorResume, onErrorResumeWith, onTerminate, peek, reduce, reduce, retry, retry, retryWhen, skip, switchIfEmpty, takeUntil, takeWhile, timeout, timeout, to
-
Methods inherited from interface io.helidon.common.reactive.Subscribable
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:
subscribe
in interfaceFlow.Publisher<T>
-
-