Package feign.hystrix
Interface SetterFactory
-
- All Known Implementing Classes:
SetterFactory.Default
public interface SetterFactoryUsed to control properties of a hystrix command. Use cases include reading from static configuration or custom annotations.This is parsed up-front, like
Contract, so will not be invoked for each command invocation.Note: when deciding the
command key, recall it lives in a shared cache, so make sure it is unique.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSetterFactory.DefaultDefault behavior is to derive the group key fromTarget.name()and the command key fromFeign.configKey(Class, Method).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.netflix.hystrix.HystrixCommand.Settercreate(feign.Target<?> target, java.lang.reflect.Method method)Returns a hystrix setter appropriate for the given target and method
-