Hystrix源码
2020-10-20 10:03:49 0 举报
Hystrix源码
作者其他创作
大纲/内容
AbstractCommand#executeCommandAndObserve
定义pointCut
delegate.get()
限流
delegate = toObservable().toBlocking().toFuture()
HystrixCommand#run
AbstractCommand#getFallbackOrThrowException
CommandExecutor.execute
hystrixCommandAnnotationPointcut
AbstractCommand#getUserExecutionObservable
spring-autoconfigure-metadata.properties
executionSemaphore.tryAcquire()
HystrixCommand#getFallbackObservable
methodsAnnotatedWithHystrixCommand
AbstractCommand#executeCommandWithSpecifiedIsolation
@Around
handleShortCircuitViaFallback
HystrixCommand#execute
spring-cloud-netflix-hystrix.jar
HystrixCommand#getExecutionObservable
没有限流
queue()
没有熔断
circuitBreaker.allowRequest()
HystrixCommand#getFallback
applyHystrixSemantics
handleSemaphoreRejectionViaFallback
执行熔断方法
HystrixCommandAspect
0 条评论
下一页