Class ConcatPublisher<T>

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 Details

    • create

      public static <T> ConcatPublisher<T> create(Flow.Publisher<T> firstPublisher, Flow.Publisher<T> secondPublisher)
      Create new ConcatPublisher.
      Type Parameters:
      T - item type
      Parameters:
      firstPublisher - first stream
      secondPublisher - second stream
      Returns:
      ConcatPublisher
    • subscribe

      public void subscribe(Flow.Subscriber<? super T> subscriber)
      Specified by:
      subscribe in interface Flow.Publisher<T>