I am using Spring Cloud Stream in my project.
I did not give group id to my consumers due to my need. That's why group id's are given automatically(anonoymous group id) by spring cloud stream. But I need to use this group id in my runtime. Is there any way I can get this group id?
I tried the following codes, but the return value null. Whereas group id is not null. Spring cloud stream gave a random value but I didn't get it.
@Autowired
private BindingService bindingService;
String groupId = bindingService.getBindingServiceProperties()
.getBindings().get("person-topic-in").getGroup();
I reviewed the source code of Spring Cloud Stream. I need the group id that I show in the image below. Is there any way I can achieve this in Runtime?