Class ReactivePropagation
java.lang.Object
io.micronaut.core.async.propagation.ReactivePropagation
Reactive propagation of
PropagatedContext.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.reactivestreams.Publisher<T>propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, org.reactivestreams.Publisher<T> actual) Creates propagation context awarePublisher.static <T> org.reactivestreams.Subscriber<T>propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, org.reactivestreams.Subscriber<T> actual) Creates propagation context awareSubscriber.static <T> org.reactivestreams.Publisher<T>propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, reactor.core.CorePublisher<T> actual) Creates propagation context awarePublisher.
-
Method Details
-
propagate
public static <T> org.reactivestreams.Publisher<T> propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, org.reactivestreams.Publisher<T> actual) Creates propagation context awarePublisher.- Type Parameters:
T- The publisher element type- Parameters:
propagatedContext- The contextactual- The publisher- Returns:
- propagation aware publisher
-
propagate
public static <T> org.reactivestreams.Publisher<T> propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, reactor.core.CorePublisher<T> actual) Creates propagation context awarePublisher.- Type Parameters:
T- The publisher element type- Parameters:
propagatedContext- The contextactual- The publisher- Returns:
- propagation aware publisher
- Since:
- 4.8
-
propagate
public static <T> org.reactivestreams.Subscriber<T> propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, org.reactivestreams.Subscriber<T> actual) Creates propagation context awareSubscriber.- Type Parameters:
T- The subscriber element type- Parameters:
propagatedContext- The contextactual- The subscriber- Returns:
- propagation aware subscriber
-