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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <ReqT,RespT>
ExecutorgetExecutor(ServerCall<ReqT,RespT> call, Metadata metadata)
Returns an executor to handle the server call.
-
-
-
Method Detail
-
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.
-
-