@Factory
public class GrpcChannelBuilderFactory
extends java.lang.Object
NettyChannelBuilder
instances.Constructor and Description |
---|
GrpcChannelBuilderFactory(io.micronaut.context.ApplicationContext beanContext,
java.util.concurrent.ExecutorService executorService)
Default constructor.
|
Modifier and Type | Method and 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.
|
public GrpcChannelBuilderFactory(io.micronaut.context.ApplicationContext beanContext, @Named(value="io") java.util.concurrent.ExecutorService executorService)
beanContext
- The bean contextexecutorService
- The I/O executor service@Bean @Prototype protected io.grpc.netty.NettyChannelBuilder managedChannelBuilder(@Parameter java.lang.String target, java.util.List<io.grpc.ClientInterceptor> interceptors)
target
- The target nameinterceptors
- The interceptors