|
|
@ -35,10 +35,12 @@ public class RabbitMQThreadPoolConfig {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public AbstractRabbitListenerContainerFactory<?> defaultContainerFactory(ThreadPoolTaskExecutor rabbitThreadPool,AbstractConnectionFactory connectionFactory){
|
|
|
|
public AbstractRabbitListenerContainerFactory<?> defaultContainerFactory(ThreadPoolTaskExecutor rabbitThreadPool,
|
|
|
|
|
|
|
|
AbstractConnectionFactory connectionFactory){
|
|
|
|
DirectRabbitListenerContainerFactory factory = new DirectRabbitListenerContainerFactory();
|
|
|
|
DirectRabbitListenerContainerFactory factory = new DirectRabbitListenerContainerFactory();
|
|
|
|
factory.setConnectionFactory(connectionFactory);
|
|
|
|
factory.setConnectionFactory(connectionFactory);
|
|
|
|
connectionFactory.setExecutor(rabbitThreadPool);
|
|
|
|
connectionFactory.setExecutor(rabbitThreadPool);
|
|
|
|
return factory;
|
|
|
|
return factory;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|