You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows for defining an executor per-service or per-method. Discussed in #7874.
This does not replace ServerBuilder.execute(), which is a the default executor to run tasks before the point when executorSupplier can be called, or as a fallback executor when executorSupplier returns nothing.
If ServerBuilder.executorSupplier() is provided, ServerBuilder.directExecutor() is automatically disabled.
The text was updated successfully, but these errors were encountered:
YifeiZhuang
changed the title
Tracking issue for server ExecutorSupplier API being experimental
Tracking issue for ServerCallExecutorSupplier API being experimental
Jun 19, 2021
If ServerBuilder.executorSupplier() is provided, ServerBuilder.directExecutor() is automatically disabled.
@YifeiZhuang, is this true? I think directExecutor still functions as would be expected from the user's perspective, we just disable a directExecutor optimization.
If ServerBuilder.executorSupplier() is provided, ServerBuilder.directExecutor() is automatically disabled.
@YifeiZhuang, is this true? I think directExecutor still functions as would be expected from the user's perspective, we just disable a directExecutor optimization.
yup I was wrong. If ServerBuilder.executorSupplier() is provided, ServerBuilder.directExecutor() is still effective, just stream optimization and synchronization optimization are disabled, and only the handleServerCall() will be handled on the supplied executor instead of the running on direct executor.
Allows for defining an executor per-service or per-method. Discussed in #7874.
This does not replace
ServerBuilder.execute()
, which is a the default executor to run tasks before the point whenexecutorSupplier
can be called, or as a fallback executor whenexecutorSupplier
returns nothing.IfServerBuilder.executorSupplier()
is provided,ServerBuilder.directExecutor()
is automatically disabled.The text was updated successfully, but these errors were encountered: