org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreakerFactory Java Examples
The following examples show how to use
org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreakerFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReactiveResilience4JAutoConfiguration.java From spring-cloud-circuitbreaker with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(ReactiveCircuitBreakerFactory.class) public ReactiveResilience4JCircuitBreakerFactory reactiveResilience4JCircuitBreakerFactory() { ReactiveResilience4JCircuitBreakerFactory factory = new ReactiveResilience4JCircuitBreakerFactory(); customizers.forEach(customizer -> customizer.customize(factory)); return factory; }
Example #2
Source File: SpringCloudCircuitBreakerFilterFactory.java From spring-cloud-gateway with Apache License 2.0 | 5 votes |
public SpringCloudCircuitBreakerFilterFactory( ReactiveCircuitBreakerFactory reactiveCircuitBreakerFactory, ObjectProvider<DispatcherHandler> dispatcherHandlerProvider) { super(Config.class); this.reactiveCircuitBreakerFactory = reactiveCircuitBreakerFactory; this.dispatcherHandlerProvider = dispatcherHandlerProvider; }
Example #3
Source File: DemoController.java From spring-cloud-circuitbreaker-demo with Apache License 2.0 | 4 votes |
public DemoController(ReactiveCircuitBreakerFactory circuitBreakerFactory, HttpBinService httpBinService) { this.circuitBreakerFactory = circuitBreakerFactory; this.httpBin = httpBinService; }
Example #4
Source File: CompletableFutureDemoController.java From spring-cloud-circuitbreaker-demo with Apache License 2.0 | 4 votes |
public CompletableFutureDemoController(CompletableFutureHttpBinService httpBin, ReactiveCircuitBreakerFactory reactiveCircuitBreakerFactory) { this.httpBin = httpBin; this.reactiveCircuitBreakerFactory = reactiveCircuitBreakerFactory; }
Example #5
Source File: RxJava2DemoController.java From spring-cloud-circuitbreaker-demo with Apache License 2.0 | 4 votes |
public RxJava2DemoController(ReactiveCircuitBreakerFactory circuitBreakerFactory, RxJava2HttpBinService rxJava2HttpBinService) { this.circuitBreakerFactory = circuitBreakerFactory; this.httpBin = rxJava2HttpBinService; }
Example #6
Source File: ReactiveResilience4JCircuitBreakerIntegrationTest.java From spring-cloud-circuitbreaker with Apache License 2.0 | 4 votes |
DemoControllerService(ReactiveCircuitBreakerFactory cbFactory) { this.cbFactory = cbFactory; this.circuitBreakerSlow = cbFactory.create("slow"); }
Example #7
Source File: ReactiveSentinelCircuitBreakerAutoConfiguration.java From spring-cloud-alibaba with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(ReactiveCircuitBreakerFactory.class) public ReactiveCircuitBreakerFactory reactiveSentinelCircuitBreakerFactory() { return new ReactiveSentinelCircuitBreakerFactory(); }
Example #8
Source File: ReactiveSentinelCircuitBreakerIntegrationTest.java From spring-cloud-alibaba with Apache License 2.0 | 4 votes |
DemoControllerService(ReactiveCircuitBreakerFactory cbFactory) { this.cbFactory = cbFactory; }
Example #9
Source File: SpringCloudCircuitBreakerResilience4JFilterFactory.java From spring-cloud-gateway with Apache License 2.0 | 4 votes |
public SpringCloudCircuitBreakerResilience4JFilterFactory( ReactiveCircuitBreakerFactory reactiveCircuitBreakerFactory, ObjectProvider<DispatcherHandler> dispatcherHandlerProvider) { super(reactiveCircuitBreakerFactory, dispatcherHandlerProvider); }