【发布时间】:2015-08-27 00:44:33
【问题描述】:
我有一个 Hystrix 命令,在超时时需要清理。 我们目前的处理方法如下:
public class MyCommand extends HystrixCommand<MyResponse> {
@Override
public MyResponse run() {
// do stuff
// Cleanup if timed out
if( this.isResponseTimedOut() ) {
// perform cleanup
}
return myresponse;
}
}
Hystrix 框架是否为此提供了另一种方式?
【问题讨论】:
-
有人有建议吗?
标签: hystrix