Class GrpcChannelExecutors

java.lang.Object
io.micronaut.grpc.channels.GrpcChannelExecutors

@Internal public final class GrpcChannelExecutors extends Object
Resolves the callback executor configured for a gRPC channel.
Since:
5.3.0
  • Method Details

    • resolve

      public static Optional<Executor> resolve(io.micronaut.context.ApplicationContext context, String channelName)
      Resolves the executor configured by grpc.channels.<name>.executor, or by grpc.client.executor for every channel. The value is the name of an Executor bean, or an Executor instance supplied by a programmatic property source. Without either, the channel keeps the I/O executor.
      Parameters:
      context - The application context
      channelName - The name of the matched channel configuration
      Returns:
      The executor, if one is configured