Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created September 11, 2014 16:11
Show Gist options
  • Select an option

  • Save lordofthejars/0daff1e34881426a5be3 to your computer and use it in GitHub Desktop.

Select an option

Save lordofthejars/0daff1e34881426a5be3 to your computer and use it in GitHub Desktop.
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