class MyLoadBalanceListener extends AbstractLoadBalanceListener {
    private static final Logger LOG = LoggerFactory.getLogger(MyLoadBalanceListener.class);

    @Override
    public void onGetServers(String serviceId, List<? extends Server> servers) {<FILL_FUNCTION_BODY>}

    @Override
    public int getOrder() {
        return LOWEST_PRECEDENCE - 500;
    }
}

        Iterator<? extends Server> iterator = servers.iterator();
        while (iterator.hasNext()) {
            Server server = iterator.next();
            String group = pluginAdapter.getServerGroup(server);
            if (StringUtils.equals(group, "mygroup3")) {
                iterator.remove();

                LOG.info("服务名=" + serviceId + "，组名=" + group + "的服务禁止被本服务负载均衡");
            }
        }
    
<methods>public non-sealed void <init>() <variables>