Hystrix 命令对象:新与单例
Hystrix Command Objects : new vs singleton
将 HystrixCommand
对象实现创建为单例是否正确?
如果是,它是否会保留线程直到它完成执行并且不再创建?
No, they are executed only once. They are stateful with input arguments, response value or error and request log. (c) Hystrix github
将 HystrixCommand
对象实现创建为单例是否正确?
如果是,它是否会保留线程直到它完成执行并且不再创建?
No, they are executed only once. They are stateful with input arguments, response value or error and request log. (c) Hystrix github