Class TimerOperator<T>

java.lang.Object
io.github.resilience4j.reactor.micrometer.operator.TimerOperator<T>
Type Parameters:
T - the value type of the upstream and downstream
All Implemented Interfaces:
Function<org.reactivestreams.Publisher<T>,org.reactivestreams.Publisher<T>>, UnaryOperator<org.reactivestreams.Publisher<T>>

public class TimerOperator<T> extends Object implements UnaryOperator<org.reactivestreams.Publisher<T>>
A Reactor Time operator which wraps a reactive type in a Timer.
  • Method Details

    • of

      public static <T> TimerOperator<T> of(io.github.resilience4j.micrometer.Timer timer)
      Creates a TimerOperator.
      Type Parameters:
      T - the value type of the upstream and downstream
      Parameters:
      timer - the timer
      Returns:
      a TimerOperator
    • apply

      public org.reactivestreams.Publisher<T> apply(org.reactivestreams.Publisher<T> publisher)
      Specified by:
      apply in interface Function<org.reactivestreams.Publisher<T>,org.reactivestreams.Publisher<T>>