Class ContextDecorator

java.lang.Object
io.smallrye.reactive.messaging.providers.locals.ContextDecorator
All Implemented Interfaces:
PublisherDecorator, jakarta.enterprise.inject.spi.Prioritized

@ApplicationScoped public class ContextDecorator extends Object implements PublisherDecorator
Decorator to dispatch messages on the Vert.x context attached to the message via LocalContextMetadata. Low priority to be called before other decorators.
  • Constructor Details

    • ContextDecorator

      public ContextDecorator()
  • Method Details

    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface jakarta.enterprise.inject.spi.Prioritized
      Specified by:
      getPriority in interface PublisherDecorator
    • decorate

      public io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, String channelName, boolean isConnector)
      Specified by:
      decorate in interface PublisherDecorator