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 TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableSourceapply(io.reactivex.rxjava3.core.Completable upstream) org.reactivestreams.Publisher<T>io.reactivex.rxjava3.core.MaybeSource<T>io.reactivex.rxjava3.core.ObservableSource<T>io.reactivex.rxjava3.core.SingleSource<T>static <T> BulkheadOperator<T>of(io.github.resilience4j.bulkhead.Bulkhead bulkhead) Creates a BulkheadOperator.
-
Method Details
-
of
Creates a BulkheadOperator.- Parameters:
bulkhead- the Bulkhead- Returns:
- a BulkheadOperator
-
apply
-
apply
-
apply
public io.reactivex.rxjava3.core.CompletableSource apply(io.reactivex.rxjava3.core.Completable upstream) - Specified by:
applyin interfaceio.reactivex.rxjava3.core.CompletableTransformer
-
apply
-
apply
-