Package io.grpc

Interface ServerCallExecutorSupplier


@ExperimentalApi("https://github.com/grpc/grpc-java/issues/8274") public interface ServerCallExecutorSupplier
Defines what executor handles the server call, based on each RPC call information at runtime.
  • Method Summary

    Modifier and Type
    Method
    Description
    <ReqT, RespT>
    Executor
    getExecutor(ServerCall<ReqT,RespT> call, Metadata metadata)
    Returns an executor to handle the server call.
  • Method Details

    • getExecutor

      @Nullable <ReqT, RespT> Executor getExecutor(ServerCall<ReqT,RespT> call, Metadata metadata)
      Returns an executor to handle the server call. It should never throw. It should return null to fallback to the default executor.