public interface Command
| 限定符和类型 | 方法和说明 |
|---|---|
default reactor.core.publisher.Mono<Void> |
doFallback(org.springframework.web.server.ServerWebExchange exchange,
Throwable exception)
do fall back when some error occurs on hystrix execute.
|
rx.Observable<Void> |
fetchObservable()
wrap fetch Observable in
HystrixCommand and HystrixCommandOnThread. |
default Object |
generateError(org.springframework.web.server.ServerWebExchange exchange,
Throwable exception)
generate a error when some error occurs.
|
URI |
getCallBackUri()
get call back uri.
|
boolean |
isCircuitBreakerOpen()
whether the 'circuit-breaker' is open.
|
rx.Observable<Void> fetchObservable()
HystrixCommand and HystrixCommandOnThread.Observable<R> that executes and calls back with the result of command execution
or a fallback if the command fails for any reason.boolean isCircuitBreakerOpen()
default Object generateError(org.springframework.web.server.ServerWebExchange exchange, Throwable exception)
exchange - the exchangeexception - exception instanceSoulResultWrapdefault reactor.core.publisher.Mono<Void> doFallback(org.springframework.web.server.ServerWebExchange exchange, Throwable exception)
exchange - ServerWebExchangeexception - ThrowableMono<Void> to indicate when request processing is complete.URI getCallBackUri()
Copyright © 2021 dromara. All rights reserved.