Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgcodevil committed Nov 14, 2015
1 parent c31d542 commit 4f921f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hystrix-contrib/hystrix-javanica/README.md
Expand Up @@ -128,9 +128,9 @@ To performe "Reactive Execution" you should return an instance of `Observable` i

The return type of command method should be `Observable`.

HystrixObservable interface provides two methods: ```observe()``` - eagerly starts execution of the command the same as ``` HystrixCommand#queue()``` and ```HystrixCommand#execute()```; ```toObservable()``` - lazily starts execution of the command only once the {@link Observable} is subscribed to. To control this behaviour and swith between two modes @HystrixCommand provides specific parameter called ```observableExecutionMode```.
@HystrixCommand(observableExecutionMode = EAGER) indicates that ```observe()``` method should be used to execute observable command
@HystrixCommand(observableExecutionMode = LAZY) indicates that ```toObservable()``` should be used to execute observable command
HystrixObservable interface provides two methods: ```observe()``` - eagerly starts execution of the command the same as ``` HystrixCommand#queue()``` and ```HystrixCommand#execute()```; ```toObservable()``` - lazily starts execution of the command only once the Observable is subscribed to. To control this behaviour and swith between two modes ```@HystrixCommand``` provides specific parameter called ```observableExecutionMode```.
```@HystrixCommand(observableExecutionMode = EAGER)``` indicates that ```observe()``` method should be used to execute observable command
```@HystrixCommand(observableExecutionMode = LAZY)``` indicates that ```toObservable()``` should be used to execute observable command

**NOTE: EAGER mode is used by default**

Expand Down

0 comments on commit 4f921f6

Please sign in to comment.