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
ConstructorsConstructorDescriptionAffinityTagServiceInstanceFilter(org.springframework.cloud.client.serviceregistry.Registration registration, AffinityTagFilterAdapter adapter, org.springframework.core.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionList<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) intgetOrder()
-
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:
filterin interfacecom.huaweicloud.governance.adapters.loadbalancer.ServiceInstanceFilter
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-