Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

业务端订阅服务变化事件时可以获取到变化的实际内容 #11477

Closed
llm163520 opened this issue Dec 6, 2023 · 1 comment
Closed
Labels
status/duplicate This issue or pull request already exists

Comments

@llm163520
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
业务端订阅服务上下线变化时,可以获取到变化的实际内容
Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
示例业务代码

public class NacosEventListener implements EventListener {
    @Override
    public void onEvent(Event event) {
		if (event instanceof NamingEvent namingEvent) {
			log.info("InstancesChangeEvent\r\n{}(LiveHosts: {}, NewHosts: {}, RemvHosts: {}, ModHosts: {}) => {}",
				namingEvent.getServiceName(),
				namingEvent.getInstances().size(),
				namingEvent.getNewHosts().size(),
				namingEvent.getRemvHosts().size(),
				namingEvent.getModHosts().size(),
				JSON.toJSONString(event));
		}
    }
}
@llm163520 llm163520 changed the title 业务端订阅服务变化时间时可以获取到变化的实际内容 业务端订阅服务变化事件时可以获取到变化的实际内容 Dec 6, 2023
@KomachiSion KomachiSion added the status/duplicate This issue or pull request already exists label Dec 8, 2023
@KomachiSion
Copy link
Collaborator

has finish in #10374.

plan to release in 2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants