Package io.micronaut.grpc.channels
Class GrpcChannelBuilderFactory
- java.lang.Object
-
- io.micronaut.grpc.channels.GrpcChannelBuilderFactory
-
@Factory public class GrpcChannelBuilderFactory extends java.lang.ObjectFactory class for creatingNettyChannelBuilderinstances.- 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.NettyChannelBuildermanagedChannelBuilder(java.lang.String target, java.util.List<io.grpc.ClientInterceptor> interceptors)Constructor a managed channel build for the given target name and interceptors.
-
-
-
Constructor Detail
-
GrpcChannelBuilderFactory
public GrpcChannelBuilderFactory(io.micronaut.context.ApplicationContext beanContext, @Named("io") java.util.concurrent.ExecutorService executorService)Default constructor.- Parameters:
beanContext- The bean contextexecutorService- 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 nameinterceptors- The interceptors- Returns:
- The channel builder
-
-