Interface SubscriberDecorator

  • All Superinterfaces:
    javax.enterprise.inject.spi.Prioritized

    @Experimental("SmallRye only feature")
    public interface SubscriberDecorator
    extends javax.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 Detail

    • Method Detail

      • decorate

        io.smallrye.mutiny.Multi<? extends Message<?>> decorate​(io.smallrye.mutiny.Multi<? extends Message<?>> toBeSubscribed,
                                                                List<String> channelName,
                                                                boolean isConnector)
        Decorate a Multi
        Parameters:
        toBeSubscribed - the multi to decorate which will be subscribed by this channel
        channelName - the list of channel names from which this subscriber consumes
        isConnector - true if decorated channel is connector
        Returns:
        the extended multi
      • getPriority

        default int getPriority()
        Specified by:
        getPriority in interface javax.enterprise.inject.spi.Prioritized