Class ReactivePropagation
java.lang.Object
io.micronaut.core.async.propagation.ReactivePropagation
Reactive propagation of
PropagatedContext
.- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Publisher<T>
propagate
(PropagatedContext propagatedContext, Publisher<T> actual) Creates propagation context awarePublisher
.static <T> Subscriber<T>
propagate
(PropagatedContext propagatedContext, Subscriber<T> actual) Creates propagation context awareSubscriber
.
-
Method Details
-
propagate
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> Subscriber<T> propagate(PropagatedContext propagatedContext, Subscriber<T> actual) Creates propagation context awareSubscriber
.- Type Parameters:
T
- The subscriber element type- Parameters:
propagatedContext
- The contextactual
- The subscriber- Returns:
- propagation aware subscriber
-