Created
February 11, 2014 21:47
-
-
Save Xorlev/8944853 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
// 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