Created
October 23, 2014 01:17
-
-
Save maxtomassi/224eab29611ba1c66323 to your computer and use it in GitHub Desktop.
Circuit breaker main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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