Package io.helidon.microprofile.reactive
Class HelidonReactivePublisherFactory
- java.lang.Object
-
- io.helidon.microprofile.reactive.HelidonReactivePublisherFactory
-
- All Implemented Interfaces:
org.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
public final class HelidonReactivePublisherFactory extends Object implements org.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
Singleton factory for creating various builders out of sources.- See Also:
INSTANCE
-
-
Field Summary
Fields Modifier and Type Field Description static HelidonReactivePublisherFactoryINSTANCEThe singleton instance.
-
Constructor Summary
Constructors Constructor Description HelidonReactivePublisherFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,T>builder()<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>concat(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T> a, org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T> b)<T,R>
org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,R>coupled(org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? super T,?> subscriber, org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends R> publisher)<T,R>
org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,R>coupled(org.reactivestreams.Subscriber<? super T> subscriber, org.reactivestreams.Publisher<? extends R> publisher)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>empty()<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>failed(Throwable t)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>fromCompletionStage(CompletionStage<? extends T> completionStage)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>fromCompletionStageNullable(CompletionStage<? extends T> completionStage)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>fromIterable(Iterable<? extends T> ts)<T,R>
org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,R>fromProcessor(org.reactivestreams.Processor<? super T,? extends R> processor)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>fromPublisher(org.reactivestreams.Publisher<? extends T> publisher)<T> org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<T,Void>fromSubscriber(org.reactivestreams.Subscriber<? extends T> subscriber)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>generate(Supplier<? extends T> s)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>iterate(T seed, UnaryOperator<T> f)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>of(T t)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>of(T... ts)<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T>ofNullable(T t)
-
-
-
Field Detail
-
INSTANCE
public static final HelidonReactivePublisherFactory INSTANCE
The singleton instance.
-
-
Method Detail
-
fromPublisher
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> fromPublisher(org.reactivestreams.Publisher<? extends T> publisher)
- Specified by:
fromPublisherin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
of
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> of(T t)
- Specified by:
ofin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
of
@SafeVarargs public final <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> of(T... ts)
- Specified by:
ofin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
empty
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> empty()
- Specified by:
emptyin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
ofNullable
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> ofNullable(T t)
- Specified by:
ofNullablein interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
fromIterable
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> fromIterable(Iterable<? extends T> ts)
- Specified by:
fromIterablein interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
failed
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> failed(Throwable t)
- Specified by:
failedin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
builder
public <T> org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,T> builder()
- Specified by:
builderin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
fromProcessor
public <T,R> org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,R> fromProcessor(org.reactivestreams.Processor<? super T,? extends R> processor)
- Specified by:
fromProcessorin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
fromSubscriber
public <T> org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<T,Void> fromSubscriber(org.reactivestreams.Subscriber<? extends T> subscriber)
- Specified by:
fromSubscriberin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
iterate
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> iterate(T seed, UnaryOperator<T> f)- Specified by:
iteratein interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
generate
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> generate(Supplier<? extends T> s)
- Specified by:
generatein interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
concat
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> concat(org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T> a, org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends T> b)- Specified by:
concatin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
fromCompletionStage
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> fromCompletionStage(CompletionStage<? extends T> completionStage)
- Specified by:
fromCompletionStagein interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
fromCompletionStageNullable
public <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> fromCompletionStageNullable(CompletionStage<? extends T> completionStage)
- Specified by:
fromCompletionStageNullablein interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
coupled
public <T,R> org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,R> coupled(org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? super T,?> subscriber, org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends R> publisher)- Specified by:
coupledin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
coupled
public <T,R> org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder<T,R> coupled(org.reactivestreams.Subscriber<? super T> subscriber, org.reactivestreams.Publisher<? extends R> publisher)- Specified by:
coupledin interfaceorg.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory
-
-