Class GrpcChannelExecutors
java.lang.Object
io.micronaut.grpc.channels.GrpcChannelExecutors
Resolves the callback executor configured for a gRPC channel.
- Since:
- 5.3.0
-
Method Summary
-
Method Details
-
resolve
public static Optional<Executor> resolve(io.micronaut.context.ApplicationContext context, String channelName) Resolves the executor configured bygrpc.channels.<name>.executor, or bygrpc.client.executorfor every channel. The value is the name of anExecutorbean, or anExecutorinstance supplied by a programmatic property source. Without either, the channel keeps the I/O executor.- Parameters:
context- The application contextchannelName- The name of the matched channel configuration- Returns:
- The executor, if one is configured
-