简体   繁体   English

Solace Queue 的到期时间

[英]Solace Queue's expiry time

I have the following code to set the expiry time on a message.我有以下代码来设置消息的到期时间。

ObjectMessage message =...;
long expiration = 30*60*1000; //30 minutes

...

message.setJMSExpiration(expiration);

After 30 minutes, I am expecting the message to expire, and hence the subscriber will not be able to pick this message. 30 分钟后,我预计消息会过期,因此订阅者将无法选择此消息。

Question : Will the message still sit in the Queue and available for browse?问题:消息是否仍会位于队列中并可供浏览?

Regards Shankar问候香卡

The message will be spooled to the queue and will be available to be browsed until the expiry time is reached.消息将被假脱机到队列中,并且在到达到期时间之前可供浏览。 At that point, the message will be removed from the queue and either discarded or sent to the DMQ, according to how the queue is configured.届时,消息将从队列中删除,并根据队列的配置方式被丢弃或发送到 DMQ。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM