use of com.tencent.polaris.api.plugin.registry.ResourceFilter in project polaris-java by polarismesh.
the class InstancesCircuitBreakTask method getInstance.
private Instance getInstance() {
ServiceEventKey serviceEventKey = new ServiceEventKey(serviceKey, EventType.INSTANCE);
ResourceFilter resourceFilter = new ResourceFilter(serviceEventKey, true, true);
ServiceInstancesByProto instances = (ServiceInstancesByProto) extensions.getLocalRegistry().getInstances(resourceFilter);
if (!instances.isInitialized()) {
return null;
}
return instances.getInstance(instId);
}
Aggregations