@EachProperty(value="grpc.channels") public class GrpcNamedManagedChannelConfiguration extends GrpcManagedChannelConfiguration
GrpcManagedChannelConfiguration.PREFIX
.channelBuilder, name, PREFIX, SETTING_TARGET, SETTING_URL
Constructor and Description |
---|
GrpcNamedManagedChannelConfiguration(java.lang.String name,
io.micronaut.context.env.Environment env,
java.util.concurrent.ExecutorService executorService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setNameResolverFactory(io.grpc.NameResolver.Factory factory)
Sets the name resolver factor to use.
|
getChannelBuilder, getName
public GrpcNamedManagedChannelConfiguration(@Parameter java.lang.String name, io.micronaut.context.env.Environment env, @Named(value="io") java.util.concurrent.ExecutorService executorService)
name
- The nameenv
- The environmentexecutorService
- The executor service@Inject public void setNameResolverFactory(@Nullable io.grpc.NameResolver.Factory factory)
GrpcManagedChannelConfiguration
setNameResolverFactory
in class GrpcManagedChannelConfiguration
factory
- The factory