(Since version 1.4.0) Use constructor accepting Config and CircuitBreakersPanel instead
Do the given block with the given service looked up.
Do the given block with the given service looked up.
This is invoked by doWithService(), after wrapping the passed in block in a circuit breaker if configured to do so.
The default implementation just delegates to the locate() method, but this method can be overridden if the service locator wants to inject other behaviour after the service call is complete.
The service name.
The service call that needs the service lookup.
A block of code that will use the looked up service, typically, to make a call on that service.
A future of the result of the block, if the service lookup was successful.
A service locator that uses static configuration.