Class TimeLimiterOperator<T>

java.lang.Object
io.github.resilience4j.reactor.timelimiter.TimeLimiterOperator<T>
Type Parameters:
T - the value type of the upstream and downstream
All Implemented Interfaces:
java.util.function.Function<org.reactivestreams.Publisher<T>,​org.reactivestreams.Publisher<T>>, java.util.function.UnaryOperator<org.reactivestreams.Publisher<T>>

public class TimeLimiterOperator<T>
extends java.lang.Object
implements java.util.function.UnaryOperator<org.reactivestreams.Publisher<T>>
A Reactor TimeLimiter operator which wraps a reactive type in a TimeLimiter.
  • Method Summary

    Modifier and Type Method Description
    org.reactivestreams.Publisher<T> apply​(org.reactivestreams.Publisher<T> publisher)  
    static <T> TimeLimiterOperator<T> of​(io.github.resilience4j.timelimiter.TimeLimiter timeLimiter)
    Creates a timeLimiter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • of

      public static <T> TimeLimiterOperator<T> of​(io.github.resilience4j.timelimiter.TimeLimiter timeLimiter)
      Creates a timeLimiter.
      Type Parameters:
      T - the value type of the upstream and downstream
      Parameters:
      timeLimiter - the timeLimiter
      Returns:
      a TimeLimiterOperator
    • apply

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