Set methodOptions by methodKey and options @param methodName it's your FeignInterface method name. @param options it's the Options for this method.
(String methodName, Options options)
| 347 | * @param options it's the Options for this method. |
| 348 | */ |
| 349 | @Experimental |
| 350 | public void setMethodOptions(String methodName, Options options) { |
| 351 | String threadIdentifier = getThreadIdentifier(); |
| 352 | Map<String, Request.Options> methodOptions = |
| 353 | threadToMethodOptions.getOrDefault(threadIdentifier, new HashMap<>()); |
| 354 | threadToMethodOptions.put(threadIdentifier, methodOptions); |
| 355 | methodOptions.put(methodName, options); |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * Creates a new Options instance. |