Your question is Circuit Breaker Implementation in Java. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Circuit breaker implementation in Java: The service A calls service B and service C every time. If one service fails 3-times in 10 minutes ( or 20 seconds in the implementation) the next call will be blocked for 5 minutes (10 seconds in the implementation). There was given a simulation of remote method calls, I needed to implement only the execute() which calls the remote service if possible.