@Override
    public List<InstanceEntity> selectInstances(final String selectKey) {
        if (watcherInstanceRegisterMap.containsKey(selectKey)) {
            return watcherInstanceRegisterMap.get(selectKey);
        }
        this.watcherStart(selectKey);
        final List<InstanceEntity> healthServices = this.getHealthServices(selectKey, "-1");
        watcherInstanceRegisterMap.put(selectKey, healthServices);
        return healthServices;
    }
The type Consul instance register repository.
shenyu-registry/shenyu-registry-consul/src/main/java/org/apache/shenyu/registry/consul/ConsulInstanceRegisterRepository.java