Class BulkheadOperator<T>

java.lang.Object
io.github.resilience4j.rxjava3.bulkhead.operator.BulkheadOperator<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
io.reactivex.rxjava3.core.CompletableTransformer, io.reactivex.rxjava3.core.FlowableTransformer<T,T>, io.reactivex.rxjava3.core.MaybeTransformer<T,T>, io.reactivex.rxjava3.core.ObservableTransformer<T,T>, io.reactivex.rxjava3.core.SingleTransformer<T,T>

public class BulkheadOperator<T> extends Object implements io.reactivex.rxjava3.core.FlowableTransformer<T,T>, io.reactivex.rxjava3.core.SingleTransformer<T,T>, io.reactivex.rxjava3.core.MaybeTransformer<T,T>, io.reactivex.rxjava3.core.CompletableTransformer, io.reactivex.rxjava3.core.ObservableTransformer<T,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

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.CompletableSource
    apply(io.reactivex.rxjava3.core.Completable upstream)
     
    org.reactivestreams.Publisher<T>
    apply(io.reactivex.rxjava3.core.Flowable<T> upstream)
     
    io.reactivex.rxjava3.core.MaybeSource<T>
    apply(io.reactivex.rxjava3.core.Maybe<T> upstream)
     
    io.reactivex.rxjava3.core.ObservableSource<T>
    apply(io.reactivex.rxjava3.core.Observable<T> upstream)
     
    io.reactivex.rxjava3.core.SingleSource<T>
    apply(io.reactivex.rxjava3.core.Single<T> upstream)
     
    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
  • Method Details

    • of

      public static <T> BulkheadOperator<T> of(io.github.resilience4j.bulkhead.Bulkhead bulkhead)
      Creates a BulkheadOperator.
      Parameters:
      bulkhead - the Bulkhead
      Returns:
      a BulkheadOperator
    • apply

      public org.reactivestreams.Publisher<T> apply(io.reactivex.rxjava3.core.Flowable<T> upstream)
      Specified by:
      apply in interface io.reactivex.rxjava3.core.FlowableTransformer<T,T>
    • apply

      public io.reactivex.rxjava3.core.SingleSource<T> apply(io.reactivex.rxjava3.core.Single<T> upstream)
      Specified by:
      apply in interface io.reactivex.rxjava3.core.SingleTransformer<T,T>
    • apply

      public io.reactivex.rxjava3.core.CompletableSource apply(io.reactivex.rxjava3.core.Completable upstream)
      Specified by:
      apply in interface io.reactivex.rxjava3.core.CompletableTransformer
    • apply

      public io.reactivex.rxjava3.core.MaybeSource<T> apply(io.reactivex.rxjava3.core.Maybe<T> upstream)
      Specified by:
      apply in interface io.reactivex.rxjava3.core.MaybeTransformer<T,T>
    • apply

      public io.reactivex.rxjava3.core.ObservableSource<T> apply(io.reactivex.rxjava3.core.Observable<T> upstream)
      Specified by:
      apply in interface io.reactivex.rxjava3.core.ObservableTransformer<T,T>