You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by GitBox <gi...@apache.org> on 2018/04/25 13:43:00 UTC
[GitHub] coheigea commented on issue #412: [CXF-7726] allows targetSelector
to be set in CircuitBreakerFailoverFeature
coheigea commented on issue #412: [CXF-7726] allows targetSelector to be set in CircuitBreakerFailoverFeature
URL: https://github.com/apache/cxf/pull/412#issuecomment-384291101
Why not instead just remove the targetSelector from CircuitBreakerFailoverFeature and override the get method instead, e.g. something like:
@Override
public FailoverTargetSelector getTargetSelector() {
if (super.getTargetSelector() == null) {
super.setTargetSelector(new CircuitBreakerTargetSelector(threshold, timeout,
super.getClientBootstrapAddress()));
}
return super.getTargetSelector();
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services