Class ContextDecorator
java.lang.Object
io.smallrye.reactive.messaging.providers.locals.ContextDecorator
- All Implemented Interfaces:
io.smallrye.reactive.messaging.PublisherDecorator,jakarta.enterprise.inject.spi.Prioritized
@ApplicationScoped
public class ContextDecorator
extends Object
implements io.smallrye.reactive.messaging.PublisherDecorator
Decorator to dispatch messages on the Vert.x context attached to the message via
LocalContextMetadata.
Low priority to be called before other decorators.-
Field Summary
Fields inherited from interface io.smallrye.reactive.messaging.PublisherDecorator
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.reactive.messaging.PublisherDecorator
decorate
-
Constructor Details
-
ContextDecorator
public ContextDecorator()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacejakarta.enterprise.inject.spi.Prioritized- Specified by:
getPriorityin interfaceio.smallrye.reactive.messaging.PublisherDecorator
-
decorate
public io.smallrye.mutiny.Multi<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> decorate(io.smallrye.mutiny.Multi<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> publisher, String channelName, boolean isConnector) - Specified by:
decoratein interfaceio.smallrye.reactive.messaging.PublisherDecorator
-