Skip to content

Instantly share code, notes, and snippets.

@maxtomassi
Created October 23, 2014 01:17
Show Gist options
  • Select an option

  • Save maxtomassi/224eab29611ba1c66323 to your computer and use it in GitHub Desktop.

Select an option

Save maxtomassi/224eab29611ba1c66323 to your computer and use it in GitHub Desktop.
Circuit breaker main
public class Main {
public static void main(String[] args) throws ExecutionException, InterruptedException {
for (int i = 0; i < 20; i++) {
String s1 = new CircuitBreakerCommand("World"+i).execute();
System.out.println(s1);
}
Hystrix.reset();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment