Class ReactiveSentinelCircuitBreaker
java.lang.Object
com.alibaba.cloud.circuitbreaker.sentinel.ReactiveSentinelCircuitBreaker
- All Implemented Interfaces:
org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreaker
public class ReactiveSentinelCircuitBreaker
extends Object
implements org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreaker
Sentinel implementation of
ReactiveCircuitBreaker.- Author:
- Eric Zhao
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveSentinelCircuitBreaker(String resourceName) ReactiveSentinelCircuitBreaker(String resourceName, com.alibaba.csp.sentinel.EntryType entryType, List<com.alibaba.csp.sentinel.slots.block.degrade.DegradeRule> rules) ReactiveSentinelCircuitBreaker(String resourceName, List<com.alibaba.csp.sentinel.slots.block.degrade.DegradeRule> rules) -
Method Summary
Modifier and TypeMethodDescription<T> reactor.core.publisher.Flux<T>run(reactor.core.publisher.Flux<T> toRun, Function<Throwable, reactor.core.publisher.Flux<T>> fallback) <T> reactor.core.publisher.Mono<T>run(reactor.core.publisher.Mono<T> toRun, Function<Throwable, reactor.core.publisher.Mono<T>> fallback) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreaker
run, run
-
Constructor Details
-
ReactiveSentinelCircuitBreaker
-
ReactiveSentinelCircuitBreaker
-
ReactiveSentinelCircuitBreaker
-
-
Method Details
-
run
public <T> reactor.core.publisher.Mono<T> run(reactor.core.publisher.Mono<T> toRun, Function<Throwable, reactor.core.publisher.Mono<T>> fallback) - Specified by:
runin interfaceorg.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreaker
-
run
public <T> reactor.core.publisher.Flux<T> run(reactor.core.publisher.Flux<T> toRun, Function<Throwable, reactor.core.publisher.Flux<T>> fallback) - Specified by:
runin interfaceorg.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreaker
-