Returns a new CallOptions with executor to be used instead of the default executor specified with ManagedChannelBuilder#executor.
(@Nullable Executor executor)
| 290 | * executor specified with {@link ManagedChannelBuilder#executor}. |
| 291 | */ |
| 292 | public CallOptions withExecutor(@Nullable Executor executor) { |
| 293 | Builder builder = toBuilder(this); |
| 294 | builder.executor = executor; |
| 295 | return builder.build(); |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Returns a new {@code CallOptions} with a {@code ClientStreamTracerFactory} in addition to |