Class GrpcChannelBuilderFactory


  • @Factory
    public class GrpcChannelBuilderFactory
    extends java.lang.Object
    Factory class for creating NettyChannelBuilder instances.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      GrpcChannelBuilderFactory​(io.micronaut.context.ApplicationContext beanContext, java.util.concurrent.ExecutorService executorService)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected io.grpc.netty.NettyChannelBuilder managedChannelBuilder​(java.lang.String target, java.util.List<io.grpc.ClientInterceptor> interceptors)
      Constructor a managed channel build for the given target name and interceptors.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrpcChannelBuilderFactory

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

      • managedChannelBuilder

        @Bean
        @Prototype
        protected io.grpc.netty.NettyChannelBuilder managedChannelBuilder​(@Parameter
                                                                          java.lang.String target,
                                                                          java.util.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