Package io.helidon.microprofile.reactive
Class HelidonReactiveStreamsEngine
- java.lang.Object
-
- io.helidon.microprofile.reactive.HelidonReactiveStreamsEngine
-
- All Implemented Interfaces:
org.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine
public final class HelidonReactiveStreamsEngine extends Object implements org.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine
Implementation ofReactive Streamswith operators backed byHelidon reactive streams.- See Also:
INSTANCE,ReactiveStreamsEngine
-
-
Field Summary
Fields Modifier and Type Field Description static HelidonReactiveStreamsEngineINSTANCEThe singleton instance.
-
Constructor Summary
Constructors Constructor Description HelidonReactiveStreamsEngine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> CompletionStage<T>buildCompletion(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph)<T,R>
org.reactivestreams.Processor<T,R>buildProcessor(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph)<T> org.reactivestreams.Publisher<T>buildPublisher(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph)<T,R>
org.eclipse.microprofile.reactive.streams.operators.spi.SubscriberWithCompletionStage<T,R>buildSubscriber(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph)static voidsetCoupledExecutor(ExecutorService executor)Override the ExecutorService used by the cross-termination and cross-cancellation of a Coupled stage.
-
-
-
Field Detail
-
INSTANCE
public static final HelidonReactiveStreamsEngine INSTANCE
The singleton instance.
-
-
Method Detail
-
buildPublisher
public <T> org.reactivestreams.Publisher<T> buildPublisher(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph) throws org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException- Specified by:
buildPublisherin interfaceorg.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine- Throws:
org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException
-
buildSubscriber
public <T,R> org.eclipse.microprofile.reactive.streams.operators.spi.SubscriberWithCompletionStage<T,R> buildSubscriber(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph) throws org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException- Specified by:
buildSubscriberin interfaceorg.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine- Throws:
org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException
-
buildProcessor
public <T,R> org.reactivestreams.Processor<T,R> buildProcessor(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph) throws org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException- Specified by:
buildProcessorin interfaceorg.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine- Throws:
org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException
-
buildCompletion
public <T> CompletionStage<T> buildCompletion(org.eclipse.microprofile.reactive.streams.operators.spi.Graph graph) throws org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException
- Specified by:
buildCompletionin interfaceorg.eclipse.microprofile.reactive.streams.operators.spi.ReactiveStreamsEngine- Throws:
org.eclipse.microprofile.reactive.streams.operators.spi.UnsupportedStageException
-
setCoupledExecutor
public static void setCoupledExecutor(ExecutorService executor)
Override the ExecutorService used by the cross-termination and cross-cancellation of a Coupled stage.- Parameters:
executor- the executor to use, null resets it to the default ForkJoinPool
-
-