Home
last modified time | relevance | path

Searched refs:methodConfig (Results 1 – 7 of 7) sorted by relevance

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DServiceConfigInterceptorTest.java93 JsonObj methodConfig = new JsonObj("name", new JsonList(name), "waitForReady", true); in withWaitForReady() local
94 JsonObj serviceConfig = new JsonObj("methodConfig", new JsonList(methodConfig)); in withWaitForReady()
119 JsonObj methodConfig = new JsonObj("name", new JsonList(name), "maxRequestMessageBytes", 1d); in withMaxRequestSize() local
120 JsonObj serviceConfig = new JsonObj("methodConfig", new JsonList(methodConfig)); in withMaxRequestSize()
133 JsonObj methodConfig = new JsonObj("name", new JsonList(name), "maxRequestMessageBytes", 10d); in withMaxRequestSize_pickSmallerExisting() local
134 JsonObj serviceConfig = new JsonObj("methodConfig", new JsonList(methodConfig)); in withMaxRequestSize_pickSmallerExisting()
148 JsonObj methodConfig = new JsonObj("name", new JsonList(name), "maxRequestMessageBytes", 5d); in withMaxRequestSize_pickSmallerNew() local
149 JsonObj serviceConfig = new JsonObj("methodConfig", new JsonList(methodConfig)); in withMaxRequestSize_pickSmallerNew()
163 JsonObj methodConfig = new JsonObj("name", new JsonList(name), "maxResponseMessageBytes", 1d); in withMaxResponseSize() local
164 JsonObj serviceConfig = new JsonObj("methodConfig", new JsonList(methodConfig)); in withMaxResponseSize()
[all …]
DManagedChannelImplTest.java2607 Map<String, Object> methodConfig = new HashMap<String, Object>(); in retryBackoffThenChannelShutdown_retryShouldStillHappen_newCallShouldFail() local
2610 methodConfig.put("name", Arrays.<Object>asList(name)); in retryBackoffThenChannelShutdown_retryShouldStillHappen_newCallShouldFail()
2611 methodConfig.put("retryPolicy", retryPolicy); in retryBackoffThenChannelShutdown_retryShouldStillHappen_newCallShouldFail()
2613 serviceConfig.put("methodConfig", Arrays.<Object>asList(methodConfig)); in retryBackoffThenChannelShutdown_retryShouldStillHappen_newCallShouldFail()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DServiceConfigUtil.java196 static Map<String, Object> getRetryPolicyFromMethodConfig(Map<String, Object> methodConfig) { in getRetryPolicyFromMethodConfig() argument
197 if (!methodConfig.containsKey(METHOD_CONFIG_RETRY_POLICY_KEY)) { in getRetryPolicyFromMethodConfig()
200 return getObject(methodConfig, METHOD_CONFIG_RETRY_POLICY_KEY); in getRetryPolicyFromMethodConfig()
204 static Map<String, Object> getHedgingPolicyFromMethodConfig(Map<String, Object> methodConfig) { in getHedgingPolicyFromMethodConfig() argument
205 if (!methodConfig.containsKey(METHOD_CONFIG_HEDGING_POLICY_KEY)) { in getHedgingPolicyFromMethodConfig()
208 return getObject(methodConfig, METHOD_CONFIG_HEDGING_POLICY_KEY); in getHedgingPolicyFromMethodConfig()
212 static List<Map<String, Object>> getNameListFromMethodConfig(Map<String, Object> methodConfig) { in getNameListFromMethodConfig() argument
213 if (!methodConfig.containsKey(METHOD_CONFIG_NAME_KEY)) { in getNameListFromMethodConfig()
216 return checkObjectList(getList(methodConfig, METHOD_CONFIG_NAME_KEY)); in getNameListFromMethodConfig()
225 static Long getTimeoutFromMethodConfig(Map<String, Object> methodConfig) { in getTimeoutFromMethodConfig() argument
[all …]
DServiceConfigInterceptor.java91 for (Map<String, Object> methodConfig : methodConfigs) { in handleUpdate()
93 methodConfig, retryEnabled, maxRetryAttemptsLimit, maxHedgedAttemptsLimit); in handleUpdate()
96 ServiceConfigUtil.getNameListFromMethodConfig(methodConfig); in handleUpdate()
99 nameList != null && !nameList.isEmpty(), "no names in method config %s", methodConfig); in handleUpdate()
144 Map<String, Object> methodConfig, boolean retryEnabled, int maxRetryAttemptsLimit, in MethodInfo() argument
146 timeoutNanos = ServiceConfigUtil.getTimeoutFromMethodConfig(methodConfig); in MethodInfo()
147 waitForReady = ServiceConfigUtil.getWaitForReadyFromMethodConfig(methodConfig); in MethodInfo()
149 ServiceConfigUtil.getMaxResponseMessageBytesFromMethodConfig(methodConfig); in MethodInfo()
156 ServiceConfigUtil.getMaxRequestMessageBytesFromMethodConfig(methodConfig); in MethodInfo()
164 retryEnabled ? ServiceConfigUtil.getRetryPolicyFromMethodConfig(methodConfig) : null; in MethodInfo()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DConfigMerger.java51 Config methodConfig = method.getAnnotation(Config.class); in getConfig() local
52 config = override(config, methodConfig); in getConfig()
/external/robolectric-shadows/junit/src/main/java/org/robolectric/internal/
DSandboxTestRunner.java191 SandboxConfig methodConfig = method.getAnnotation(SandboxConfig.class);
192 if (methodConfig != null) {
193 for (String pkgName : methodConfig.instrumentedPackages()) {
/external/grpc-grpc/doc/
Dservice_config.md31 'methodConfig': [
42 // 'methodConfig': [