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:
[email protected]


With regards,
Apache Git Services

Reply via email to