Package feign.hystrix

Interface SetterFactory

  • All Known Implementing Classes:
    SetterFactory.Default

    public interface SetterFactory
    Used 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 class  SetterFactory.Default
      Default behavior is to derive the group key from Target.name() and the command key from Feign.configKey(Class, Method).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.netflix.hystrix.HystrixCommand.Setter create​(feign.Target<?> target, java.lang.reflect.Method method)
      Returns a hystrix setter appropriate for the given target and method
    • Method Detail

      • create

        com.netflix.hystrix.HystrixCommand.Setter create​(feign.Target<?> target,
                                                         java.lang.reflect.Method method)
        Returns a hystrix setter appropriate for the given target and method