From 4f921f618acda8cdf6e332ec79a85b6e5013f6b8 Mon Sep 17 00:00:00 2001 From: Roman Pleshkov Date: Sat, 14 Nov 2015 00:51:58 -0500 Subject: [PATCH] Update README.md --- hystrix-contrib/hystrix-javanica/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hystrix-contrib/hystrix-javanica/README.md b/hystrix-contrib/hystrix-javanica/README.md index a486847c6..bd2c7ffcb 100644 --- a/hystrix-contrib/hystrix-javanica/README.md +++ b/hystrix-contrib/hystrix-javanica/README.md @@ -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**