You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This set of methods matches well to HystrixCommand, but not HystrixObservableCommand.
HystrixCommand has a run() method, HystrixObservableCommand has construct(), so the naming feels strange
onRunSuccess conflates an emission (it contains the response) and a terminal signal. HystrixObservableCommand may emit many values before the overall command is marked as a 'success' (an onCompleted)
Ran into this while working on implementing #600
Currently, HystrixCommandExecutionHook has the following methods (among others):
onRunStart(HystrixInvokable<T> instance)
onRunSuccess(HystrixInvokable<T> instance, T response)
onRunError(HystrixInvokable<T> instance, Exception ex)
onStart(HystrixInvokable<T> instance)
onComplete(HystrixInvokable<T> instance, T response)
onError(HystrixInvokable<T> instance, FailureType failureType, Exception ex)
This set of methods matches well to HystrixCommand, but not HystrixObservableCommand.
run()
method, HystrixObservableCommand hasconstruct()
, so the naming feels strangeonRunSuccess
conflates an emission (it contains the response) and a terminal signal. HystrixObservableCommand may emit many values before the overall command is marked as a 'success' (anonCompleted
)onComplete
also suffers this conflation\cc @benjchristensen for thoughts on design
The text was updated successfully, but these errors were encountered: