Interface GrpcClientDefaultServiceConfigCustomizer

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 GrpcClientDefaultServiceConfigCustomizer
Callback interface that can be used to customize the default service config of the GrpcChannelBuilderCustomizer.

This customizer should be used instead of calling ManagedChannelBuilder.defaultServiceConfig(Map) from a GrpcChannelBuilderCustomizer since it allows multiple customizers to update the same default service config, rather than having a "last wins" outcome.

Since:
4.1.0
Author:
Phillip Webb
See Also:
  • GrpcChannelBuilderCustomizer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(String target, Map<String,Object> defaultServiceConfig)
    Customize the given default service config.
  • Method Details

    • customize

      void customize(String target, Map<String,Object> defaultServiceConfig)
      Customize the given default service config.
      Parameters:
      target - the target (which may be a virtual target).
      defaultServiceConfig - the default service config to customize