Package io.micronaut.grpc.channels
Class GrpcNamedManagedChannelConfiguration
java.lang.Object
io.micronaut.grpc.channels.GrpcManagedChannelConfiguration
io.micronaut.grpc.channels.GrpcNamedManagedChannelConfiguration
- All Implemented Interfaces:
io.micronaut.core.naming.Named
@EachProperty("grpc.channels")
public class GrpcNamedManagedChannelConfiguration
extends GrpcManagedChannelConfiguration
Constructs a named channel configuration for each property specified in
GrpcManagedChannelConfiguration.PREFIX
.- Since:
- 1.0.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from class io.micronaut.grpc.channels.GrpcManagedChannelConfiguration
channelBuilder, CONNECT_ON_STARTUP, CONNECTION_TIMEOUT, name, PREFIX, SETTING_TARGET, SETTING_URL
-
Constructor Summary
ConstructorDescriptionGrpcNamedManagedChannelConfiguration
(String name, io.micronaut.context.env.Environment env, ExecutorService executorService) Default constructor. -
Method Summary
Methods inherited from class io.micronaut.grpc.channels.GrpcManagedChannelConfiguration
getChannelBuilder, getConnectionTimeout, getName, isConnectOnStartup
-
Constructor Details
-
GrpcNamedManagedChannelConfiguration
public GrpcNamedManagedChannelConfiguration(@Parameter String name, io.micronaut.context.env.Environment env, @Named("io") ExecutorService executorService) Default constructor.- Parameters:
name
- The nameenv
- The environmentexecutorService
- The executor service
-