Home
last modified time | relevance | path

Searched refs:withOption (Results 1 – 13 of 13) sorted by relevance

/external/grpc-grpc-java/core/src/jmh/java/io/grpc/
DCallOptionsBenchmark.java59 allOpts = allOpts.withOption(customOptions.get(i), "value"); in setUp()
73 public CallOptions withOption() { in withOption() method in CallOptionsBenchmark
76 opts = opts.withOption(customOptions.get(i), "value"); in withOption()
90 opts = opts.withOption(shuffledCustomOptions.get(i), "value2"); in withOptionDuplicates()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DCallOptionsTest.java59 .withOption(OPTION_1, "value1")
61 .withOption(OPTION_2, "value2")
182 CallOptions opts = CallOptions.DEFAULT.withOption(OPTION_1, "v1"); in withCustomOption()
188 CallOptions opts = CallOptions.DEFAULT.withOption(OPTION_1, "v1").withOption(OPTION_1, "v2"); in withCustomOptionLastOneWins()
194 CallOptions opts = CallOptions.DEFAULT.withOption(OPTION_1, "v1").withOption(OPTION_2, "v2"); in withMultipleCustomOption()
DClientInterceptorsTest.java399 CallOptions callOptions = CallOptions.DEFAULT.withOption(customOption, "value"); in customOptionAccessible()
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DAbstractStub.java175 public final <T> S withOption(CallOptions.Key<T> key, T value) { in withOption() method in AbstractStub
176 return build(channel, callOptions.withOption(key, value)); in withOption()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DServiceConfigInterceptor.java314 .withOption(RETRY_POLICY_KEY, new ImmediateRetryPolicyProvider()) in interceptCall()
315 .withOption(HEDGING_POLICY_KEY, new ImmediateHedgingPolicyProvider()); in interceptCall()
355 .withOption(RETRY_POLICY_KEY, new DelayedRetryPolicyProvider()) in interceptCall()
356 .withOption(HEDGING_POLICY_KEY, new DelayedHedgingPolicyProvider()); in interceptCall()
/external/grpc-grpc-java/examples/android/clientcache/app/src/test/java/io/grpc/clientcacheexample/
DSafeMethodCachingInterceptorTest.java168 CallOptions.DEFAULT.withOption(SafeMethodCachingInterceptor.NO_CACHE_CALL_OPTION, true), in requestWithNoCacheOptionSkipsCache()
184 CallOptions.DEFAULT.withOption( in requestWithOnlyIfCachedOption_unavailableIfNotInCache()
205 CallOptions.DEFAULT.withOption( in requestWithOnlyIfCachedOption_usesCache()
219 .withOption(SafeMethodCachingInterceptor.NO_CACHE_CALL_OPTION, true) in requestWithNoCacheAndOnlyIfCached_fails()
220 .withOption(SafeMethodCachingInterceptor.ONLY_IF_CACHED_CALL_OPTION, true), in requestWithNoCacheAndOnlyIfCached_fails()
/external/grpc-grpc-java/cronet/src/main/java/io/grpc/cronet/
DCronetCallOptions.java59 return callOptions.withOption( in withAnnotation()
/external/grpc-grpc-java/examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/
DClientCacheExampleActivity.java125 callOptions.withOption(SafeMethodCachingInterceptor.NO_CACHE_CALL_OPTION, true); in doInBackground()
129 callOptions.withOption( in doInBackground()
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DCallOptions.java308 public <T> CallOptions withOption(Key<T> key, T value) { in withOption() method in CallOptions
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DDelayedClientTransportTest.java288 CallOptions failFastCallOptions = CallOptions.DEFAULT.withOption(SHARD_ID, 1); in reprocessSemantics()
289 CallOptions waitForReadyCallOptions = CallOptions.DEFAULT.withOption(SHARD_ID, 2) in reprocessSemantics()
DCensusModulesTest.java106 CallOptions.DEFAULT.withOption(CUSTOM_OPTION, "customvalue");
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DNettyChannelBuilder.java151 public <T> NettyChannelBuilder withOption(ChannelOption<T> option, T value) { in withOption() method in NettyChannelBuilder
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetClientStreamTest.java590 CallOptions.DEFAULT.withOption(CronetCallOptions.CRONET_ANNOTATION_KEY, annotation), in addCronetRequestAnnotation_deprecated()