MCPcopy Create free account
hub / github.com/grpc/grpc-java / withExecutor

Method withExecutor

api/src/main/java/io/grpc/CallOptions.java:292–296  ·  view source on GitHub ↗

Returns a new CallOptions with executor to be used instead of the default executor specified with ManagedChannelBuilder#executor.

(@Nullable Executor executor)

Source from the content-addressed store, hash-verified

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

Calls 2

toBuilderMethod · 0.95
buildMethod · 0.95