Package io.helidon.microprofile.reactive
Class HelidonReactiveStreamsEngine
- java.lang.Object
-
- io.helidon.microprofile.reactive.HelidonReactiveStreamsEngine
-
- All Implemented Interfaces:
ReactiveStreamsEngine
public final class HelidonReactiveStreamsEngine extends Object implements ReactiveStreamsEngine
Implementation ofReactive Streams
with operators backed byHelidon reactive streams
.- See Also:
INSTANCE
,ReactiveStreamsEngine
-
-
Field Summary
Fields Modifier and Type Field Description static HelidonReactiveStreamsEngine
INSTANCE
The 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(Graph graph)
<T,R>
Processor<T,R>buildProcessor(Graph graph)
<T> Publisher<T>
buildPublisher(Graph graph)
<T,R>
SubscriberWithCompletionStage<T,R>buildSubscriber(Graph graph)
static void
setCoupledExecutor(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> Publisher<T> buildPublisher(Graph graph) throws UnsupportedStageException
- Specified by:
buildPublisher
in interfaceReactiveStreamsEngine
- Throws:
UnsupportedStageException
-
buildSubscriber
public <T,R> SubscriberWithCompletionStage<T,R> buildSubscriber(Graph graph) throws UnsupportedStageException
- Specified by:
buildSubscriber
in interfaceReactiveStreamsEngine
- Throws:
UnsupportedStageException
-
buildProcessor
public <T,R> Processor<T,R> buildProcessor(Graph graph) throws UnsupportedStageException
- Specified by:
buildProcessor
in interfaceReactiveStreamsEngine
- Throws:
UnsupportedStageException
-
buildCompletion
public <T> CompletionStage<T> buildCompletion(Graph graph) throws UnsupportedStageException
- Specified by:
buildCompletion
in interfaceReactiveStreamsEngine
- Throws:
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
-
-