Package io.smallrye.reactive.messaging
Interface PublisherDecorator
-
- All Superinterfaces:
jakarta.enterprise.inject.spi.Prioritized
@Experimental("SmallRye only feature") public interface PublisherDecorator extends jakarta.enterprise.inject.spi.Prioritized
SPI to allow extension of publishers (Multi) included in the final graph.PublisherDecorator
s are invoked higher priority first (from the least value to the greatest). The decorator priority is obtained with thegetPriority()
method. The default priority isDEFAULT_PRIORITY
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PRIORITY
Default priority
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.smallrye.mutiny.Multi<? extends Message<?>>
decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, String channelName, boolean isConnector)
Decorate a Multidefault int
getPriority()
-
-
-
Field Detail
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
Default priority- See Also:
- Constant Field Values
-
-
Method Detail
-
decorate
io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, String channelName, boolean isConnector)
Decorate a Multi- Parameters:
publisher
- the multi to decoratechannelName
- the name of the channel to which this publisher publishesisConnector
-true
if decorated channel is connector- Returns:
- the extended multi
-
getPriority
default int getPriority()
- Specified by:
getPriority
in interfacejakarta.enterprise.inject.spi.Prioritized
-
-