Class WebMvcServiceInstanceFilter

java.lang.Object
com.huaweicloud.router.client.loadbalancer.webmvc.WebMvcServiceInstanceFilter
All Implemented Interfaces:
com.huaweicloud.governance.adapters.loadbalancer.ServiceInstanceFilter, org.springframework.core.Ordered

public class WebMvcServiceInstanceFilter extends Object implements com.huaweicloud.governance.adapters.loadbalancer.ServiceInstanceFilter
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebMvcServiceInstanceFilter(org.apache.servicecomb.router.distribute.AbstractRouterDistributor<org.springframework.cloud.client.ServiceInstance> routerDistributor, org.apache.servicecomb.router.RouterFilter routerFilter, org.springframework.core.env.Environment env)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.springframework.cloud.client.ServiceInstance>
    filter(org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier supplier, List<org.springframework.cloud.client.ServiceInstance> instances, org.springframework.cloud.client.loadbalancer.Request<?> request)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebMvcServiceInstanceFilter

      @Autowired public WebMvcServiceInstanceFilter(org.apache.servicecomb.router.distribute.AbstractRouterDistributor<org.springframework.cloud.client.ServiceInstance> routerDistributor, org.apache.servicecomb.router.RouterFilter routerFilter, org.springframework.core.env.Environment env)
  • Method Details

    • filter

      public List<org.springframework.cloud.client.ServiceInstance> filter(org.springframework.cloud.loadbalancer.core.ServiceInstanceListSupplier supplier, List<org.springframework.cloud.client.ServiceInstance> instances, org.springframework.cloud.client.loadbalancer.Request<?> request)
      Specified by:
      filter in interface com.huaweicloud.governance.adapters.loadbalancer.ServiceInstanceFilter
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered