Class BulkheadOperator<T>
java.lang.Object
io.github.resilience4j.reactor.bulkhead.operator.BulkheadOperator<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Function<org.reactivestreams.Publisher<T>,,org.reactivestreams.Publisher<T>> UnaryOperator<org.reactivestreams.Publisher<T>>
public class BulkheadOperator<T>
extends Object
implements 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
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<T>static <T> BulkheadOperator<T>of(io.github.resilience4j.bulkhead.Bulkhead bulkhead) Creates a BulkheadOperator.