Class ReactivePropagation

java.lang.Object
io.micronaut.core.async.propagation.ReactivePropagation

public final class ReactivePropagation extends Object
Reactive propagation of PropagatedContext.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> org.reactivestreams.Publisher<T>
    propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, org.reactivestreams.Publisher<T> actual)
    Creates propagation context aware Publisher.
    static <T> org.reactivestreams.Subscriber<T>
    propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, org.reactivestreams.Subscriber<T> actual)
    Creates propagation context aware Subscriber.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 aware Publisher.
      Type Parameters:
      T - The publisher element type
      Parameters:
      propagatedContext - The context
      actual - The publisher
      Returns:
      propagation aware publisher
    • propagate

      public static <T> org.reactivestreams.Subscriber<T> propagate(io.micronaut.core.propagation.PropagatedContext propagatedContext, org.reactivestreams.Subscriber<T> actual)
      Creates propagation context aware Subscriber.
      Type Parameters:
      T - The subscriber element type
      Parameters:
      propagatedContext - The context
      actual - The subscriber
      Returns:
      propagation aware subscriber