12.6 使用ActiveMQ消息调度延迟发送消息

博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1778.html

 

12.6 Scheduling messages to be delivered by ActiveMQ in the future

12.6 使用ActiveMQ消息调度延迟发送消息

 

The ability to schedule a message to be delivered after a delay, or at regular intervals,

is an extremely useful feature provided by ActiveMQ. One unique benefit is that messages

that are scheduled to be delivered in the future are stored persistently, so that

they can survive a hard failure of an ActiveMQ broker and be delivered on restart.

You specify that you want a message to be delivered at a later time by setting welldefined

properties on the message. For convenience, the well-known property names

are defined in the org.apache.activemq.ScheduledMessage interface. These properties

are shown in table 12.2.

 

ActiveMQ消息调度实现的消息延迟发送或者在按照固定时间的间隔实现间隔发送的功能十分有用.

其中一个独一无二的好处是消息调度设置为延迟发送的消息将会被持久化存储,因而在ActiveMQ代理

严重失效是消息不会丢失并且在代理重启后会继续发送消息.你可以通过严格定义消息的属性来设置如何

延迟发送消息.为方便起见,常用的延迟发送消息相关的属性都在org.apache.activemq.ScheduledMessage

接口中有定义,如表12.2所示.

 

........................

博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1778.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值