Skip to content

Instantly share code, notes, and snippets.

@Xorlev
Created February 11, 2014 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xorlev/8944853 to your computer and use it in GitHub Desktop.
Save Xorlev/8944853 to your computer and use it in GitHub Desktop.
// To force synchronous .queue() behavior
ConfigurationManager.getConfigInstance()
.setProperty("hystrix.command."+ReportUsageCommand.class.getSimpleName()+".execution.isolation.strategy", "SEMAPHORE");
new ReportUsageCommand(my, ctor, args).queue(); // is now synchronous.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment