Skip to content

Commit

Permalink
HystrixObservableCollapser
Browse files Browse the repository at this point in the history
Make the collapser support non-blocking HystrixObservableCommand
  • Loading branch information
benjchristensen committed Apr 22, 2014
1 parent eea4a05 commit fb96410
Show file tree
Hide file tree
Showing 6 changed files with 754 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public abstract class HystrixCollapser<BatchReturnType, ResponseType, RequestArg
* <li>GLOBAL: Requests from any thread (ie. all HTTP requests) within the JVM will be collapsed. 1 queue for entire app.</li>
* </ul>
*/
public static enum Scope {
public static enum Scope implements RequestCollapserFactory.Scope {
REQUEST, GLOBAL
}

Expand Down Expand Up @@ -185,7 +185,7 @@ public HystrixCollapserKey getCollapserKey() {
* @return {@link Scope} that collapsing should be performed within.
*/
public Scope getScope() {
return collapserFactory.getScope();
return Scope.valueOf(collapserFactory.getScope().name());
}

/**
Expand Down
Loading

0 comments on commit fb96410

Please sign in to comment.