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 TypeMethodDescription<ReqT,
RespT>
ExecutorgetExecutor
(ServerCall<ReqT, RespT> call, Metadata metadata) Returns an executor to handle the server call.
-
Method Details
-
getExecutor
Returns an executor to handle the server call. It should never throw. It should return null to fallback to the default executor.
-