Package io.smallrye.reactive.messaging
Interface SubscriberDecorator
- All Superinterfaces:
jakarta.enterprise.inject.spi.Prioritized
@Experimental("SmallRye only feature")
public interface SubscriberDecorator
extends jakarta.enterprise.inject.spi.Prioritized
SPI to allow extension of subscription targets (Multi) included in the final graph.
SubscriberDecorators 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<?>> toBeSubscribed, List<String> channelName, boolean isConnector) Deprecated.default io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> toBeSubscribed, List<String> channelName, org.eclipse.microprofile.config.Config channelConfig) Decorate a Multidefault int
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault priority- See Also:
-
-
Method Details
-
decorate
@Deprecated(since="4.37.0") default io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> toBeSubscribed, List<String> channelName, boolean isConnector) Deprecated.replaced withdecorate(Multi, List, Config)Decorate a Multi- Parameters:
toBeSubscribed- the multi to decorate which will be subscribed by this channelchannelName- the list of channel names from which this subscriber consumesisConnector-trueif decorated channel is connector- Returns:
- the extended multi
-
decorate
default io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> toBeSubscribed, List<String> channelName, org.eclipse.microprofile.config.Config channelConfig) Decorate a Multi- Parameters:
toBeSubscribed- the multi to decorate which will be subscribed by this channelchannelName- the list of channel names from which this subscriber consumeschannelConfig- the channel configuration, ornullif not a connector channel- Returns:
- the extended multi
-
getPriority
default int getPriority()- Specified by:
getPriorityin interfacejakarta.enterprise.inject.spi.Prioritized
-
decorate(Multi, List, Config)