Hello,
In the event my HystrixCommand times out, I would like to implement the ability in my fallback to retry up to 3 times before calling it a day and returning a static response. Below is my initial cut at it, which I now know has many flaws :-) What approach have others used to introduce a retry capability to their HystrixCommands?
@Override
protected Person getFallback() {
retryCounter++;
if (retryCounter < 3) {
runTask();
}
return new Person (99,"Wayne","Gretzky", "superstar");
}