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

Method withOption

stub/src/main/java/io/grpc/stub/AbstractStub.java:205–208  ·  view source on GitHub ↗

Sets a custom option to be passed to client interceptors on the channel io.grpc.ClientInterceptor via the CallOptions parameter. @since 1.0.0 @param key the option being set @param value the value for the key

(CallOptions.Key<T> key, T value)

Source from the content-addressed store, hash-verified

203 * @param value the value for the key
204 */
205 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1869")
206 public final <T> S withOption(CallOptions.Key<T> key, T value) {
207 return build(channel, callOptions.withOption(key, value));
208 }
209
210 /**
211 * Returns a new stub that has the given interceptors attached to the underlying channel.

Callers 6

blockingUnaryCallMethod · 0.45
newStubMethod · 0.45
newStubMethod · 0.45
setStubTypeMethod · 0.45
newStubMethod · 0.45

Calls 1

buildMethod · 0.95

Tested by

no test coverage detected