We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version:3.20.0
以下是消费者代码
@PostConstruct public void init() { for (DelayQueueEnum queueEnum : DelayQueueEnum.values()) { MQConsumer delayQueueConsumer = SpringUtil.getBean(queueEnum.getClazz()); if (delayQueueConsumer == null) { throw new ServiceException("queueName=" + queueEnum.getClazz() + ",delayQueueConsumer=null,请检查配置..."); } ThreadUtil.execAsync(() -> { while (true) { try { String queueName = queueEnum.getQueName(); MQContextDTO contextDTO = QueueUtils.getDelayedQueueObjectTake(queueName); if (ObjUtil.isNull(contextDTO) || StrUtil.equals(contextDTO.getMessageType(), "0")) { continue; } delayQueueConsumer.listener(contextDTO); } catch (Exception e) { log.error(e.getMessage()); } } }, true); } }
现象:延时队列消息过期之后,没有监听到消息过期,直到下次发送消息的时候才能监听到过期消息
The text was updated successfully, but these errors were encountered:
No branches or pull requests
version:3.20.0
以下是消费者代码
现象:延时队列消息过期之后,没有监听到消息过期,直到下次发送消息的时候才能监听到过期消息
The text was updated successfully, but these errors were encountered: