Skip to content

Commit

Permalink
Add documentation to configure group execute service. Fixes #182
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Baxter authored Jan 5, 2024
1 parent 27a9a4e commit 7173d7f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ public Customizer<Resilience4JCircuitBreakerFactory> slowCustomizer() {
}
----

If you need to propogate the security context to the Circuit Breaker you must configure the circuit breaker to use `DelegatingSecurityContextExecutorService`.

[source,java]
----
@Bean
public Customizer<Resilience4JCircuitBreakerFactory> groupExecutorServiceCustomizer() {
return factory -> factory.configureGroupExecutorService(group -> new DelegatingSecurityContextExecutorService(Executors.newVirtualThreadPerTaskExecutor()));
}
----

[[reactive-example]]
== Reactive Example

Expand Down

0 comments on commit 7173d7f

Please sign in to comment.