Interface HybridProcessor<T,R>
-
- Type Parameters:
T- type of items processor consumesR- type of items processor emits
- All Superinterfaces:
Flow.Processor<T,R>,Flow.Publisher<R>,Flow.Subscriber<T>,Multi<R>,org.reactivestreams.Processor<T,R>,org.reactivestreams.Publisher<R>,Subscribable<R>,org.reactivestreams.Subscriber<T>
public interface HybridProcessor<T,R> extends Flow.Processor<T,R>, org.reactivestreams.Processor<T,R>, Multi<R>
Wrapper forReactive StreamsProcessororHelidon reactive streamsFlow.Processor, to be used interchangeably.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static <T,R>
HybridProcessor<T,R>from(Flow.Processor<T,R> processor)Create newHybridProcessorfromFlow.Processor.static <T,R>
HybridProcessor<T,R>from(org.reactivestreams.Processor<T,R> processor)Create newHybridProcessorfromProcessor.default voidonSubscribe(Flow.Subscription subscription)default voidonSubscribe(org.reactivestreams.Subscription subscription)default voidsubscribe(Flow.Subscriber<? super R> subscriber)default voidsubscribe(org.reactivestreams.Subscriber<? super R> subscriber)-
Methods inherited from interface java.util.concurrent.Flow.Subscriber
onComplete, onError, onNext
-
Methods inherited from interface io.helidon.common.reactive.Multi
collect, collect, collectList, collectStream, defaultIfEmpty, distinct, dropWhile, filter, first, flatMap, flatMap, flatMapIterable, flatMapIterable, forEach, limit, map, onComplete, onError, onErrorResume, onErrorResumeWith, onTerminate, peek, reduce, reduce, skip, switchIfEmpty, takeUntil, takeWhile
-
Methods inherited from interface io.helidon.common.reactive.Subscribable
subscribe, subscribe, subscribe, subscribe
-
-
-
-
Method Detail
-
from
static <T,R> HybridProcessor<T,R> from(Flow.Processor<T,R> processor)
Create newHybridProcessorfromFlow.Processor.- Type Parameters:
T- type of items processor consumesR- type of items processor emits- Parameters:
processor-Flow.Processorto wrap- Returns:
HybridProcessorcompatible withReactive StreamsandHelidon reactive streams
-
from
static <T,R> HybridProcessor<T,R> from(org.reactivestreams.Processor<T,R> processor)
Create newHybridProcessorfromProcessor.- Type Parameters:
T- type of items processor consumesR- type of items processor emits- Parameters:
processor-Processorto wrap- Returns:
HybridProcessorcompatible withReactive StreamsandHelidon reactive streams
-
subscribe
default void subscribe(Flow.Subscriber<? super R> subscriber)
- Specified by:
subscribein interfaceFlow.Publisher<T>
-
subscribe
default void subscribe(org.reactivestreams.Subscriber<? super R> subscriber)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<T>
-
onSubscribe
default void onSubscribe(Flow.Subscription subscription)
- Specified by:
onSubscribein interfaceFlow.Subscriber<T>
-
onSubscribe
default void onSubscribe(org.reactivestreams.Subscription subscription)
- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<T>
-
-