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 Detail

      • getExecutor

        @Nullable
        <ReqT,​RespT> java.util.concurrent.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.