Interface ArmeriaClientConfigurator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Configures the underlying Armeria client of
CentralDogma
. Can be used to register arbitrary client decorators. e.g.
CentralDogmaBuilder builder = new CentralDogmaBuilder();
builder.clientConfigurator(cb -> {
// Collect the client-side metrics under the meter name 'dogma.client'
cb.decorator(HttpRequest.class, HttpResponse.class,
MetricCollectingClient.newDecorator(
MeterIdFunction.ofDefault("dogma.client")));
});
...
-
Method Summary
-
Method Details
-
configure
Configures the client using the specifiedClientBuilder
.
-