I am working on an application that is using the Vertx. In it, I have a NetClient and uses the Vertx Circuit Breaker for a continuously stay connected to a server. I now am working on something that requires these Verticles to be undeployed at some point but when I do, it seems like the circuit breaker for some reason stays alive even after verticle.undeploy has succeeded.
I've tried calling the close method for the Circuit Breaker before undeploying, but even with that, I get a very inconsistent result. First time it works but second time around, the circuit breaker stays alive.
Any idea if it's possible to completely kill the circuit breaker once started?
Using: Java 8 and Vertx 3.8.1