Currently the thread names are missing for rabbit listener, pulsars' consumer and task executor. This PR added the thread names for mentioned components following convention specified in other autoconfigs via RabbitAnnotationDrivenConfiguration and PulsarAutoconfiguration.

Tests are added as well to check the threads names are specified when threads are created (via java.util.concurrent.ThreadFactory#newThread) through the factory.

Request / bug ticket, https://github.com/spring-projects/spring-boot/issues/39748

Comment From: MazizEsa

cc. @mhalbritter @scottfrederick

Comment From: mhalbritter

Thanks @MazizEsa! I've polished your changes a bit in https://github.com/spring-projects/spring-boot/commit/09652cb2826aabf4aac56b15f99110417fa6c8e9.

Comment From: MazizEsa

I see. You guys prefer that way. Got it.