Class ContextDecorator
- java.lang.Object
-
- io.smallrye.reactive.messaging.providers.locals.ContextDecorator
-
- All Implemented Interfaces:
PublisherDecorator,javax.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 viaLocalContextMetadata. Low priority to be called before other decorators.
-
-
Field Summary
-
Fields inherited from interface io.smallrye.reactive.messaging.PublisherDecorator
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ContextDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Multi<? extends Message<?>>decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, String channelName, boolean isConnector)intgetPriority()
-
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfacejavax.enterprise.inject.spi.Prioritized- Specified by:
getPriorityin interfacePublisherDecorator
-
decorate
public io.smallrye.mutiny.Multi<? extends Message<?>> decorate(io.smallrye.mutiny.Multi<? extends Message<?>> publisher, String channelName, boolean isConnector)
- Specified by:
decoratein interfacePublisherDecorator
-
-