MCPcopy Index your code
hub / github.com/OpenFeign/feign / setMethodOptions

Method setMethodOptions

core/src/main/java/feign/Request.java:349–356  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Calls 2

getThreadIdentifierMethod · 0.80
putMethod · 0.65