title: Spring Circuit Breaker - Resilience4j - how to configure?
body: <p>I have a quick question regarding Spring Cloud Circuit Breaker with Resilience4J (not Resilience4J alone).</p>
  <p>Both projects are pretty awesome. However, currently, we ended in the fallback too often. That means, when the 3rd party service is actually fine, we still end up going to the fallback.</p>
  <p>This is probably my own issue, hence, I would like to ask a question for a particular configuration.</p>
  <p>I would like to tell the current Configuration to do the following:
  The circuit breaker. (I am going to use good, bad, and half good/half bad states.</p>
  <ul>
  <li><p>When state is good: After a configurable number (let's take 5 for example) failed requests (something is wrong on the 3rd party API), put to half good/half bad.</p>
  </li>
  <li><p>When state is half good/half bad: Once in half good/bad, if more than half (configurable) of the requests are success, put if back to good state.</p>
  </li>
  <li><p>When state is half good/half bad: If more than half of the requests are still failing, put to bad state.</p>
  </li>
  <li><p>When state is bad: After two consecutive good requests, put it back to half good half bad.</p>
  </li>
  <li><p>For the time out, a request should answer within 4 seconds. It is the SLA the 3rd party gave us. Above that, probably something is wrong.</p>
  </li>
  <li><p>For each failed request, a retry of 3 (configurable) times.</p>
  </li>
  </ul>
  <p>May I ask how to achieve that please in Spring Webflux?</p>
  <p>Thank you</p>