Created
September 11, 2014 16:11
-
-
Save lordofthejars/0daff1e34881426a5be3 to your computer and use it in GitHub Desktop.
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 HelloWorldCommand extends HystrixCommand<String> { | |
| public HelloWorldCommand() { | |
| super(HystrixCommandGroupKey.Factory.asKey("HelloWorld")); | |
| } | |
| @Override | |
| protected String getFallback() { | |
| return "Good Bye"; | |
| } | |
| @Override | |
| protected String run() throws Exception { | |
| return "Hello World"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment