Class AffinityTagServiceInstanceFilter

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

public class AffinityTagServiceInstanceFilter extends Object implements com.huaweicloud.governance.adapters.loadbalancer.ServiceInstanceFilter
affinity tag instance filter
Since:
2023-09-19
Author:
provenceee
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AffinityTagServiceInstanceFilter(org.springframework.cloud.client.serviceregistry.Registration registration, AffinityTagFilterAdapter adapter, org.springframework.core.env.Environment environment)
     
  • 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

    • AffinityTagServiceInstanceFilter

      public AffinityTagServiceInstanceFilter(org.springframework.cloud.client.serviceregistry.Registration registration, AffinityTagFilterAdapter adapter, org.springframework.core.env.Environment environment)
  • 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