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.
PublisherDecorators are invoked higher priority first (from the least value to the greatest).
The decorator priority is obtained with the getPriority() method.
The default priority is DEFAULT_PRIORITY.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault io.smallrye.mutiny.Multi<? extends Message<?>>decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, String channelName, boolean isConnector) Deprecated.default io.smallrye.mutiny.Multi<? extends Message<?>>decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, List<String> channelName, boolean isConnector) Decorate a Multidefault int
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault priority- See Also:
-
-
Method Details
-
decorate
@Deprecated(since="4.12.0") default io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, String channelName, boolean isConnector) Deprecated.replaced withdecorate(Multi, List, boolean)Decorate a Multi- Parameters:
publisher- the multi to decoratechannelName- the name of the channel to which this publisher publishesisConnector-trueif decorated channel is connector- Returns:
- the extended multi
-
decorate
default io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, List<String> channelName, boolean isConnector) Decorate a Multi- Parameters:
publisher- the multi to decoratechannelName- the list of channel names from which this publisher publishesisConnector-trueif decorated channel is connector- Returns:
- the extended multi
-
getPriority
default int getPriority()- Specified by:
getPriorityin interfacejakarta.enterprise.inject.spi.Prioritized
-
decorate(Multi, List, boolean)