C#使用NMS與ActiveMQ通訊問題總結:如何持久化發佈

/**
                         * msg:發佈的內容。
                         * Apache.NMS.MsgDeliveryMode.Persistent: 持久化
                         * Apache.NMS.MsgPriority.Normal:內容優先級(重要性)
                         * new TimeSpan(TimeSpan.TicksPerMillisecond * 10) 持久化時間
                         * **/
                        producer.Send(msg, Apache.NMS.MsgDeliveryMode.Persistent, Apache.NMS.MsgPriority.Normal, new TimeSpan(TimeSpan.TicksPerMillisecond * 10));

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章