|
|
@ -74,7 +74,7 @@ public class PolarisCircuitBreaker implements CircuitBreaker, InvokeHandler {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (CallAbortedException e) {
|
|
|
|
catch (CallAbortedException e) {
|
|
|
|
LOGGER.debug("PolarisCircuitBreaker CallAbortedException: {}", e.getMessage());
|
|
|
|
LOGGER.debug("PolarisCircuitBreaker CallAbortedException: {}", e.getMessage());
|
|
|
|
PolarisCircuitBreakerUtils.reportStatus(consumerAPI, conf, e);
|
|
|
|
reportStatus(e);
|
|
|
|
return fallback.apply(e);
|
|
|
|
return fallback.apply(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e) {
|
|
|
|
catch (Exception e) {
|
|
|
@ -97,11 +97,7 @@ public class PolarisCircuitBreaker implements CircuitBreaker, InvokeHandler {
|
|
|
|
invokeHandler.onError(responseContext);
|
|
|
|
invokeHandler.onError(responseContext);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PolarisCircuitBreakerConfigBuilder.PolarisCircuitBreakerConfiguration getConf() {
|
|
|
|
public void reportStatus(CallAbortedException e) {
|
|
|
|
return conf;
|
|
|
|
PolarisCircuitBreakerUtils.reportStatus(consumerAPI, conf, e);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ConsumerAPI getConsumerAPI() {
|
|
|
|
|
|
|
|
return consumerAPI;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|