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.

@FunctionalInterface public interface ArmeriaClientConfigurator
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

    Modifier and Type
    Method
    Description
    void
    Configures the client using the specified ClientBuilder.