Interface ChannelBuilderCustomizer<T extends io.grpc.ManagedChannelBuilder<T>>


public interface ChannelBuilderCustomizer<T extends io.grpc.ManagedChannelBuilder<T>>
Allow for customization of Channel building. Implement the customize method, depending on which Channel implementation you're going to use, e.g. Vert.x or Netty. This is an experimental API, subject to change.
  • Method Details

    • customize

      default Map<String,Object> customize(String name, GrpcClientConfiguration config, T builder)
      Customize a ManagedChannelBuilder instance.
      Parameters:
      name - gRPC client name
      config - client's configuration
      builder - Channel builder instance
      Returns:
      map of config properties to be used as default service config against the builder
    • customize

      default void customize(String name, GrpcClientConfiguration config, io.vertx.grpc.client.GrpcClientOptions options)
      Customize a GrpcClientOptions instance.
      Parameters:
      name - gRPC client name
      config - client's configuration
      options - GrpcClientOptions instance
    • priority

      default int priority()
      Priority by which the customizers are applied. Higher priority is applied later.
      Returns:
      the priority