Class GrpcChannelBuilderFactory

java.lang.Object
io.micronaut.grpc.channels.GrpcChannelBuilderFactory

@Factory public class GrpcChannelBuilderFactory extends Object
Factory class for creating NettyChannelBuilder instances.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • GrpcChannelBuilderFactory

      public GrpcChannelBuilderFactory(io.micronaut.context.ApplicationContext beanContext, @Named("io") ExecutorService executorService)
      Default constructor.
      Parameters:
      beanContext - The bean context
      executorService - The I/O executor service
  • Method Details

    • managedChannelBuilder

      @Bean @Prototype protected io.grpc.netty.NettyChannelBuilder managedChannelBuilder(@Parameter String target, List<io.grpc.ClientInterceptor> interceptors)
      Constructor a managed channel build for the given target name and interceptors.
      Parameters:
      target - The target name
      interceptors - The interceptors
      Returns:
      The channel builder