【问题标题】:spring activemq jmsTemplate.setTimeToLive take longer time more than the specified miliseconds to delete the messagespring activemq jmsTemplate.setTimeToLive 需要比指定毫秒更长的时间才能删除消息
【发布时间】:2014-01-16 15:19:00
【问题描述】:

我需要在特定时间后删除一条消息,所以我启用了 explicitQosEnabled 并设置了生存时间。

但我注意到该消息已被删除,但它需要的时间比指定的(一分钟)长,所以以前有人遇到过这个问题吗?

【问题讨论】:

    标签: spring activemq jmstemplate


    【解决方案1】:

    它按预期工作。我没有看到任何问题。如果您使用的是activeMQ,您可以打开您的消息并通过浏览器查看消息的到期时间。当消息过期时,过期应该具有确切的纪元时间戳。您还可以在您的消息上使用 API 来 jmsTemplate.getTimeToLive。

    Gubs

    【讨论】:

      猜你喜欢
      • 2018-08-19
      • 1970-01-01
      • 1970-01-01
      • 2017-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-15
      相关资源
      最近更新 更多