Package feign.ribbon

Class RibbonClient

  • All Implemented Interfaces:
    feign.Client

    public class RibbonClient
    extends java.lang.Object
    implements feign.Client
    RibbonClient can be used in Feign builder to activate smart routing and resiliency capabilities provided by Ribbon. Ex.
     MyService api = Feign.builder.client(RibbonClient.create()).target(MyService.class,
         "http://myAppProd");
     
    Where myAppProd is the ribbon client name and myAppProd.ribbon.listOfServers configuration is set.
    • Constructor Detail

      • RibbonClient

        @Deprecated
        public RibbonClient()
        Deprecated.
        Use the create()
      • RibbonClient

        @Deprecated
        public RibbonClient​(feign.Client delegate)
        Deprecated.
        Use the create()
    • Method Detail

      • execute

        public feign.Response execute​(feign.Request request,
                                      feign.Request.Options options)
                               throws java.io.IOException
        Specified by:
        execute in interface feign.Client
        Throws:
        java.io.IOException