Package io.helidon.microprofile.reactive
Class HelidonReactivePublisherFactory
- java.lang.Object
-
- io.helidon.microprofile.reactive.HelidonReactivePublisherFactory
-
- All Implemented Interfaces:
ReactiveStreamsFactory
public final class HelidonReactivePublisherFactory extends Object implements ReactiveStreamsFactory
Singleton factory for creating various builders out of sources.- See Also:
INSTANCE
-
-
Field Summary
Fields Modifier and Type Field Description static HelidonReactivePublisherFactory
INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Constructor Description HelidonReactivePublisherFactory()
-
Method Summary
-
-
-
Field Detail
-
INSTANCE
public static final HelidonReactivePublisherFactory INSTANCE
The singleton instance.
-
-
Method Detail
-
fromPublisher
public <T> PublisherBuilder<T> fromPublisher(Publisher<? extends T> publisher)
- Specified by:
fromPublisher
in interfaceReactiveStreamsFactory
-
of
public <T> PublisherBuilder<T> of(T t)
- Specified by:
of
in interfaceReactiveStreamsFactory
-
of
@SafeVarargs public final <T> PublisherBuilder<T> of(T... ts)
- Specified by:
of
in interfaceReactiveStreamsFactory
-
empty
public <T> PublisherBuilder<T> empty()
- Specified by:
empty
in interfaceReactiveStreamsFactory
-
ofNullable
public <T> PublisherBuilder<T> ofNullable(T t)
- Specified by:
ofNullable
in interfaceReactiveStreamsFactory
-
fromIterable
public <T> PublisherBuilder<T> fromIterable(Iterable<? extends T> ts)
- Specified by:
fromIterable
in interfaceReactiveStreamsFactory
-
failed
public <T> PublisherBuilder<T> failed(Throwable t)
- Specified by:
failed
in interfaceReactiveStreamsFactory
-
builder
public <T> ProcessorBuilder<T,T> builder()
- Specified by:
builder
in interfaceReactiveStreamsFactory
-
fromProcessor
public <T,R> ProcessorBuilder<T,R> fromProcessor(Processor<? super T,? extends R> processor)
- Specified by:
fromProcessor
in interfaceReactiveStreamsFactory
-
fromSubscriber
public <T> SubscriberBuilder<T,Void> fromSubscriber(Subscriber<? extends T> subscriber)
- Specified by:
fromSubscriber
in interfaceReactiveStreamsFactory
-
iterate
public <T> PublisherBuilder<T> iterate(T seed, UnaryOperator<T> f)
- Specified by:
iterate
in interfaceReactiveStreamsFactory
-
generate
public <T> PublisherBuilder<T> generate(Supplier<? extends T> s)
- Specified by:
generate
in interfaceReactiveStreamsFactory
-
concat
public <T> PublisherBuilder<T> concat(PublisherBuilder<? extends T> a, PublisherBuilder<? extends T> b)
- Specified by:
concat
in interfaceReactiveStreamsFactory
-
fromCompletionStage
public <T> PublisherBuilder<T> fromCompletionStage(CompletionStage<? extends T> completionStage)
- Specified by:
fromCompletionStage
in interfaceReactiveStreamsFactory
-
fromCompletionStageNullable
public <T> PublisherBuilder<T> fromCompletionStageNullable(CompletionStage<? extends T> completionStage)
- Specified by:
fromCompletionStageNullable
in interfaceReactiveStreamsFactory
-
coupled
public <T,R> ProcessorBuilder<T,R> coupled(SubscriberBuilder<? super T,?> subscriber, PublisherBuilder<? extends R> publisher)
- Specified by:
coupled
in interfaceReactiveStreamsFactory
-
coupled
public <T,R> ProcessorBuilder<T,R> coupled(Subscriber<? super T> subscriber, Publisher<? extends R> publisher)
- Specified by:
coupled
in interfaceReactiveStreamsFactory
-
-