Class BulkheadOperator<T>

  • Type Parameters:
    T - the value type
    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 BulkheadOperator<T>
    extends java.lang.Object
    implements java.util.function.UnaryOperator<org.reactivestreams.Publisher<T>>
    A Bulkhead operator which checks if a subscriber/observer can acquire a permission to subscribe to an upstream Publisher. Otherwise emits a BulkheadFullException, if the Bulkhead is full.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<T> apply​(org.reactivestreams.Publisher<T> publisher)  
      static <T> BulkheadOperator<T> of​(io.github.resilience4j.bulkhead.Bulkhead bulkhead)
      Creates a BulkheadOperator.
      • 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 Detail

      • of

        public static <T> BulkheadOperator<T> of​(io.github.resilience4j.bulkhead.Bulkhead bulkhead)
        Creates a BulkheadOperator.
        Type Parameters:
        T - the value type of the upstream and downstream
        Parameters:
        bulkhead - the Bulkhead
        Returns:
        a BulkheadOperator
      • 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>>