solace-spring-cloud
solace-spring-cloud copied to clipboard
Improve thread names
What I want?
Clear thread-names would be great.
Why I want it?
We have a lot consumers and got issues because of (unexpected) long-running consumer. I want to check the threads and have the problem thatI cant match the thread to our different consumers.
Where can Solace fix it?
https://github.com/SolaceProducts/solace-spring-cloud/blob/5af78f644ca073ab13ec8c21d5793e344b6719d0/solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder-core/src/main/java/com/solace/spring/cloud/stream/binder/inbound/JCSMPInboundChannelAdapter.java#L157
How can it be fixed?
- Easy -> Create a ThreadFactory with a prefix of the binding. I will create a small PR for it.
- Take a ThreadPoolExcutor from application-context. In other words: Allow to give a bean-name in parameters and use that bean.