springboot延时装置
时间: 2023-10-15 15:25:25 浏览: 140
SpringBoot中的延时装置是使用DelayQueue实现的。DelayQueue是一个无界阻塞队列,只有在延迟期满时,才能从中提取元素。SpringBoot通过使用DelayQueue来执行延时任务。引用内容中提到了一篇介绍了SpringBoot执行延时任务的文章,你可以参考该文章了解更多关于DelayQueue的使用。另外,在配置文件中使用了xsi:schemaLocation来指定了Spring的bean和RabbitMQ的xml schema文件,并且通过启用rabbitmq_delayed_message_exchange插件来支持延时消息的发送和接收。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [springboot执行延时任务之DelayQueue的使用详解](https://download.csdn.net/download/weixin_38689191/12744362)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [关于springboot:SpringBoot-RabbitMQ消息队列的重试超时延时死信队列](https://blog.csdn.net/weixin_29163581/article/details/115340675)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文