Class CancelStageFactory
java.lang.Object
io.smallrye.mutiny.streams.stages.CancelStageFactory
- All Implemented Interfaces:
TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel>
public class CancelStageFactory
extends Object
implements TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel>
Implementation of
Stage.Cancel. It subscribes and disposes the stream immediately.- Author:
- Clement Escoffier
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CancelStageFactory
public CancelStageFactory()
-
-
Method Details
-
create
public <I,O> TerminalStage<I,O> create(Engine engine, org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel stage) Description copied from interface:TerminalStageFactoryCreates the instance.- Specified by:
createin interfaceTerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel>- Type Parameters:
I- incoming dataO- computed result- Parameters:
engine- the reactive engine, must not benullstage- the stage, must not benull- Returns:
- the terminal stage, must not be
null
-